Changing the rules in sonar

I use Sonar to list violations in the code. Although many violations are legal, some of the violations identified are too far-fetched.

For example, I want Sonar to rule out violations in log statements as well as in annotated JAXB classes. Since these classes are widespread in several project packages, I cannot exclude any particular package.

Is there any suitable way to solve this problem.

thank

+3
source share
1 answer

You can use the shutdown shutdown plugin to precisely control which violations should not be reported. See the documentation for more details.

@oers, JAXB , "sonar.excludes".

+2

All Articles