2

I am importing my full binaries folder which contains binaries of classes I don't want to analyze, as well as tests that I also want to analyze. Despite Sonar documentation stating that the sonar.properties property supports comma separated values, it is incorrect. If I try to include many folders, separating with a comma, only the first folder path will be included in the analysis.

I know in the Sonar dashboard you can exclude source files, but it does not say anything about excluding .class files.

user1340582
  • 19,151
  • 35
  • 115
  • 171

1 Answers1

1

I know in the Sonar dashboard you can exclude source files, but it does not say anything about excluding .class files.

Following "SONAR - How to exclude packages that is defined under “sonar.test”", a directive like:

/path/to/class/dir/**/*.class

should exclude all .class files.
It should be fairly similr to the sonar.exclusions Analysis Parameter.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250