Hi, I’m using sonar-scanner-4.6.2.2472-linux. In the top directory of my project source, I have a sonar-project.properties file in which I would like to specify multiple directories to be excluded from scanning (as I have some root-owned directories in the repo, some 3rd party code and so on). To give some context, here is my directory structure:
my-project ----> Project Dir
my-project/sonar-project.properties —> Properties file
my-project/A/B/C/D/** ----> Want to ignore anything and everything under the directory D
I’ve tried the below patterns in sonar.exclusions but none seem to work as the scanner always ends up trying to scan the contents under D and errors out as they are root owned.
sonar.exclusions=A/B/C/D/**
sonar.exclusions=**/A/B/C/D/**
sonar.exclusions=full_path_to/my-project/A/B/C/D/**
sonar.exclusions=./A/B/C/D/**
None of the above work. Please suggest which would be a right pattern?