I would like to exclude this rule for Python: python:S3457
What is the right syntax for sonar-project.properties
to exclude one or multiple Python rules please?
I would like to exclude this rule for Python: python:S3457
What is the right syntax for sonar-project.properties
to exclude one or multiple Python rules please?
Hey there.
It sounds like you want to make changes to the Quality Profile being applied, or adjust the Analysis Scope > Ignoring Issues.
I read the link provided but was not able to find the relevant information.
This is the content of sonar-project.properties
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=src\
sonar.exclusions=frontend\static\assets\compressed\**\*,**\fonts\**\*,**\tests\**\*,**\migrations\**\*
As you can see, this folder is excluded:
frontend\static\assets\compressed\**\*
But I am still seeing issues in the web UI for files in this folder, which I would not expect since I am trying to exclude it. Is there something wrong with my above syntax?
Try **\frontend\static\assets\compressed\**\*
Thanks Colin, I did update but unfortunately I am still seeing the same issues as before.
See below:
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=src\
sonar.exclusions=**\frontend\static\assets\compressed\**\*,**\fonts\**\*,**\tests\**\*,**\migrations\**\*
Any idea why this would be the case?
Are you sure that these are actually being read by the scanner? You should be able to what has been read by the scanner in the scanner logs:
INFO: Project configuration:
INFO: Excluded sources: misc/**/*, Tools/**/*, CI/**/*, ci-cd/**/*, QOUTA/TestScripts/**/*