Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • sonar.exclusions property to exclude source code files
  • sonar.teststest.exclusions property to exclude unit test files

Global exclusions that will apply to all projects can also be set. Go to Settings > General Settings > Exclusions > Files and set the sonar.global.exclusions and sonar.global.teststest.exclusions properties.

Since version 3.5, you can also work the other way around by setting inclusions. Go to Settings > General Settings > Exclusions > Files and set the sonar.inclusions and sonar.test.inclusions properties. If you set an inclusion, then only the files or modules listed there will be included in the analysis.

...