SonarQube - duplicated unit, how to change the configuration

SonarQube shows me this duplication:

1 package pl.com.bernas.ioz.user.domain; 2 3 import java.io.Serializable; 

This is an undesirable behavior.

Is it possible to disable this type of duplication? But I don’t want to disable the duplication rule at all or add a class to ignore. Can I ignore this particular case?

+5
source share
1 answer

As far as I know, you cannot exclude only this type of duplication from your analysis. You can exclude the entire file from your analysis, but this is not a good idea. Perhaps you can try the SourceMeter plugin for SonarQube . It has a slightly more sophisticated duplication search. You can find an online demo here .

+1
source

Source: https://habr.com/ru/post/1202063/


All Articles