Exclude package root from SonarLint?

How do you exclude all classes in a specific root package in SonarLint?

For example, I want to exclude all classes like foo.bar.xxx

and foo.bar.yyy.zzz

.

I've tried both of them to avoid taking advantage:

  • sonar.exclusions = /foo/bar/**

  • sonar.exclusions = **/foo/bar/**

I am using the Intellij plugin, but I assume the syntax will follow the same one documented here ( https://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus )

+3


source to share


2 answers


Unfortunately the property is sonar.exclusions

ignored by SonarLint for IntelliJ (and Eclipse too). There's a ticket to add support for this, feel free to vote for it:



https://jira.sonarsource.com/browse/SLI-97

+4


source


Adding an exception to the Test File Regular Expressions field works at least for the Eclipse plugin.



+1


source







All Articles