How to ignore Sensor SonarCSS Rules [cssfamily]

python

(Morten Bjoernsvik) #1

sonarsource v7.5 with latest sonar-scanner

I’m using -D"sonar.exclusions=long comma separated list of dirs to ignore with *.css and *.js"

is there a way to just ignore any *.css and *.js so node is not required in my container,
The list is very long and hard to maintain. I only want to do python code analysis and python coverage
and do not wan to bloat my build container more than needed.

Thanks
Morten Bjoernsvik, Oslo, Norway


(Colin Mueller) #2

Checkout the notes on Narrowing the Focus, including where it specifies the usage of wildcards.

**/*.css ignores all files with the css extension in all folders, for example