'PylintSensor' 已跳过,因为质量配置文件中没有激活相关规则
'PylintSensor' skipped because there is no related rule activated in the quality profile
我想用 Sonar(7.1 版)和 pylint 扫描我的 python 代码。我正在使用插件 SonarPython(版本 1.10)
命令执行扫描:
sonar-scanner -Dsonar.projectKey=${PROJECT} -Dsonar.projectVersion=${VERSION} -Dsonar.projectName=${PROJECT} -Dsonar.python.pylint=/usr/bin/pylint -X
还有我的 sonar-project.properties
文件:
sonar.projectBaseDir=./
sonar.sources=./
sonar.python.coverage.reportPath=./coverage.xml
sonar.core.codeCoveragePlugin=cobertura
sonar.python.xunit.reportPath=./nosetests.xml
sonar.exclusions=test/**
我得到了:
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
谢谢!
它会跳过,因为我没有在 Sonar 服务器上激活 Pylint 规则。
可以参考:Here
我想用 Sonar(7.1 版)和 pylint 扫描我的 python 代码。我正在使用插件 SonarPython(版本 1.10)
命令执行扫描:
sonar-scanner -Dsonar.projectKey=${PROJECT} -Dsonar.projectVersion=${VERSION} -Dsonar.projectName=${PROJECT} -Dsonar.python.pylint=/usr/bin/pylint -X
还有我的 sonar-project.properties
文件:
sonar.projectBaseDir=./
sonar.sources=./
sonar.python.coverage.reportPath=./coverage.xml
sonar.core.codeCoveragePlugin=cobertura
sonar.python.xunit.reportPath=./nosetests.xml
sonar.exclusions=test/**
我得到了:
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
谢谢!
它会跳过,因为我没有在 Sonar 服务器上激活 Pylint 规则。
可以参考:Here