SonarQube Enterprise EditionVersion 8.4.1 exclusions not working

We’re having problem while setting the sonar.exclusions for our solution.

We have Jenkins that uses the SonarQube extension and scan the project.

In the properties, we set sonar.exclusion and provide folders to exclude. sonar.exclusions=./nbproject/**,./vendor/**

But, it still considered those folders and it causes lots of consumption of LOC.

Please help.

Hi,

I understand your confusion. Exclusions should specify which files to ignore. As you have found, by specifying directory patterns you haven’t actually excluded anything.

Try this pattern: nbproject/**/*.*,vendor/**/*.*

 
HTH,
Ann