Hi Ann,
Thanks for consideration
We found that from these we can ignore files. My problem is with code blocks
For example:
In drupal hook_menu all contents are similar except the statements inside quotes
$items['path/to/page1'] = array(
'title' => 'My form',
'page callback' => 'hook_page_function1',
'access arguments' => array('access content'),
'description' => 'My form',
'type' => MENU_CALLBACK,
);
$items['path/to/page2'] = array(
'title' => 'My form 2',
'page callback' => 'hook_page_function2',
'access arguments' => array('access content'),
'description' => 'My form 2',
'type' => MENU_CALLBACK,
);
In HTML
<div id="firstdiv"><?php print $data; ?></div>
<div id="seconddiv"><?php print $data; ?></div>
see the two sections in each code reported as duplicated in sonarqube
My Doubt is that is any way to remove these areas during scanning from our drupal code and html code not entire file
Thanks
Geo