I use “Enterprise Edition 10.7” and we have exceptions configured that are not ignored for coverage. Do you have any recommendations to do?
thanks!!
I use “Enterprise Edition 10.7” and we have exceptions configured that are not ignored for coverage. Do you have any recommendations to do?
thanks!!
If you’re only looking to exclude certain files/directories from Code Coverage analysis, make sure you’re setting the right setting. Source File Exclusions ignores files that match the pattern completely. If you scroll down a bit, you’ll find the setting for Coverage Exclusions
And indeed, I would expect that some of your exclusions work as they’re written (like src/styles/wirTheme.js
. Have you reanalyzed your project since setting these exclusions, and are you sure that nothing could be overriding these exclusions at the scanner level? Remember that anything you set as -Dsonar.exclusions=...
will completely override what is set at the server-level (docs.
You can see what exclusions are taken into account by the scanner in the logs.
INFO: Indexing files...
INFO: Project configuration:
INFO: Excluded sources: src/styles/wirTheme.js
Colin! ok! thanks for you recomendations! I check all my deploy process and I found a error with the jenkins pipe exclusions. solved!