steve cook
steve cook

Reputation: 3224

Exclude a package root from SonarLint?

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

For example, I want to exclude all classes such as foo.bar.xxx and foo.bar.yyy.zzz.

I've tried both of these no to avail:

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

Upvotes: 3

Views: 3305

Answers (2)

kiatra
kiatra

Reputation: 157

Adding the exclusion into the "Test file regular expressions" field works at least for the Eclipse plugin.

Upvotes: 1

janos
janos

Reputation: 124774

Unfortunately the sonar.exclusions property is ignored by SonarLint for IntelliJ (and Eclipse too). There's a ticket to add support for that, feel free to vote on it:

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

Upvotes: 6

Related Questions