To exclude generated code from sonar analysis for quality violation

The generated code is present in a separate path to the target folder, for example: target/generated-sources/fod1/fod2/*.java

I tried several options, but in vain I ask for help.

 <properties> <sonar.exclusions>**/generatedsources/fod1/fod2/**/*.java</sonar.exclusions> </properties> 

I tried the option with one of the messages also **/*generated*

+8
sonarqube
source share
2 answers

See the documentation on the General Settings> Exceptions page. The file:**/generated-sources/** template will complete the task if you are not using an too old version of SonarQube.

+12
source share

In SonarQube 5.4, duplicate exceptions are located in the General Settings> Analysis Area section of the Duplicates tab.

+1
source share

All Articles