DEV Community

Discussion on: How I configured SonarQube for Python code analysis with Jenkins and Docker

Collapse
 
sauravbhagat profile image
saurav kumar bhagat

Hi, in my project, I want to exclude a file from sonarqube scan, and I am using this property for that,
sonarDetails:
sourcesPath: "src"
additionalProperties: "-Dsonar.coverage.exclusions=**/src/main.py"

But this file is not getting excluded and coverage is not exceeding 50%.
Can you help with this?
Thanks