We introduced a repo to Automatic Analysis and got a full report of all the files in the code base. We now want to filter that down to only the “relevant” files in the code base, and have added a .sonarcloud.properties file to the root of the repo with the following:
sonar.sources=.
sonar.exclusions=db/archives,public/stylesheets
sonar.test.exclusions=app/**/__tests__
# Exclusions for copy-paste detection
sonar.cpd.exclusions=app/**/__tests__
But even after that’s been merged into the main branch and run a few times from other changes, the line count in the Code tab under the exclusions dir are still calculated.
It’s not just the lines of code, but also the Bugs, and Code Smells, etc that are still contributing