Work with:
Azure Devops pipelines
SonarScanner for MSBuild 5.2.1
INFO: SonarScanner 4.6.1.2450
INFO: Project root configuration file: D:\a\1.sonarqube\out\sonar-project.properties
I don’t understand why my sonar-project.properties file is not taken into account during the sonar analysis.
I set the exclusion of Scripts file from Angular libraries like these
My sonar-project.properties
sonar.sources= .
sonar.projectKey= myOrganisation_WebApp
sonar.projectName= my-webapp
sonar.exclusions= **/Scripts/**/*
Log
sonar.log.level=DEBUG
sonar.verbose=true
But the scan analyzes them anyway.
Why ?
Results
however when i set the exclusion in the graphical interface the exclusion works fine.
I have the impression that the parameters defined in UI take precedence over the sonar-project.properties file.
Is this really a normal behavior?
It would seem interesting to me that the sonar-project.properties file overloads UI, to allow to keep track of the evolution of this file in source control manager, don’t you think so?
