I currently have a SonarQube 5.1.2 instance with a C # plugin and an MSBuild runner to analyze the LOC 1,200,000 project. I intend to reduce the parsed classes, I created a sonar.properties file with a line
sonar.exclusions=**/Databases/**/*.*
but after reading the log from the analysis, the files in the "Databases" folder were analyzed. following Eric Starr’s instructions, I set up this simple exception rule in a runner’s challenge:
"C:\sonarqube-5.1.2\bin\MSBuild.SonarQube.Runner.exe" begin /k:MyProject /n:MyProject /v:2 /d:sonar.exclusions="file:C:\codesource\Databases/**/*.*" /d:sonar.scm.provider=tfvc /d:sonar.tfvc.username=************* /d:sonar.tfvc.password.secured={aes}*************************** "/d:sonar.cs.vscoveragexml.reportsPaths=C:\codesource\CodeCoverage\Results.coveragexml"
I found that the runner creates the sonar-project.properties file and contains many files located in the database folder:
BC78C8C4-8ECD-47CB-9781-F621AE109FE4.sonar.projectName=myDatabase BC78C8C4-8ECD-47CB-9781-F621AE109FE4.sonar.projectBaseDir=BC78C8C4-8ECD-47CB-9781-F621AE109FE4.sonar.projectName=myDatabase BC78C8C4-8ECD-47CB-9781-F621AE109FE4.sonar.projectBaseDir=C:\\codesource\\Databases\\myDatabase BC78C8C4-8ECD-47CB-9781-F621AE109FE4.sonar.sources=\ C:\\codesource\\Databases\\myDatabase\\Scripts\\PreDeployment\\PATCH_20150527_01.sql,\ C:\\codesource\\Databases\\myDatabase\\Scripts\\PreDeployment\\ROCOMMON.DBVERSION.sql,\ ,\.....
as I understand it, there should be no files in the database folder. I'm wrong?
source share