Exclude a package root from SonarLint?

Viewed 2678

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:

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

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)

2 Answers

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

Related