1
votes

I would like to scan my python code with Sonar (version 7.1) and pylint. I'm using plugin SonarPython (version 1.10)
Command execute scan:

sonar-scanner -Dsonar.projectKey=${PROJECT} -Dsonar.projectVersion=${VERSION} -Dsonar.projectName=${PROJECT} -Dsonar.python.pylint=/usr/bin/pylint -X

And my sonar-project.properties file:

sonar.projectBaseDir=./
sonar.sources=./
sonar.python.coverage.reportPath=./coverage.xml
sonar.core.codeCoveragePlugin=cobertura
sonar.python.xunit.reportPath=./nosetests.xml
sonar.exclusions=test/**

I got :

DEBUG: PylintSensor skipped because there is no related rule activated in the quality profile
DEBUG: PylintImportSensor skipped because there is no related rule activated in the quality profile


Thanks!

1
Can you provide an absolute paht for the sonar.projectBaseDir?hakamairi
It is 03:32:30.027 INFO: Base dir: /tmp/jenkins/workspace/${project-name}Night

1 Answers

1
votes

It skips because I do not active Pylint rules on Sonar server.
You can refer: Here