I have a Groovy project that is being analyzed by Sonar 3.0.1. We have dual code detection enabled using the Sonar detector.
In one set of files, it detects 11 lines of duplicate statements import. In another set of files, it detects 15 lines of duplicate member declarations. Since this project has a clear separation of the display objects of the vs-display database (although they are mostly similar, therefore, duplicate declarations of participants), I would like to configure Sonar to ignore these sets of duplicates - we believe that they are valid duplicates.
How can I tell Sonar to ignore duplicate imports and / or declarations of participants, but still yell at me to duplicate code inside methods?
source
share