Hello,
I can see in the SonarQube database that the number of duplicated block is indeed calculated for Java (rule 423/DuplicatedBlocks)
/* Project Name Message Technical_debt
Extranet dptsrvep005.java 103 duplicated blocks of code must be removed. 1040
Extranet dptsrvep010.java 128 duplicated blocks of code must be removed. 1290
Extranet dptsrvep400.java 199 duplicated blocks of code must be removed. 2000
Extranet dptsrvep020.java 308 duplicated blocks of code must be removed. 3090
*/
But I cannot get any result on Cobol analysis (rule 1199/DuplicatedBlocks)
In SonarQube, I open the dashboard for the Java project where I can see the number of files duplicated. Click on this number to open the Issues (module/file) page for Dupicated Files. Click on the first file open the file with its total number of Issues. Click on this number open the Issues page where I can see issue 'x duplicated blocks of code must be removed' for this file.
Doing the same with a Cobol project does not show any issue in the Issues page even if I have x files with duplications.
Another way: go to the project, then Issues, then check 'Rules' and enter 'duplicated' in the Search field, select '(Java) Source files should not have duplicated blocks' shows all the issues for this rule on the selected project. Same with a Cobol project shows 0 issues. Although there are metrics for duplications (lines, blocks, files).
I will investigate further with other Cobol analysis and ABAP code and check if I did something wrong, so this is for you info.
Anyway, I will keep you informed (or should I continue through another list as it could concern only commercial plugins?)
Best regards.
Jean-Pierre