当我使用sonar-project.properties:时
sonar.projectKey=gauge
sonar.sources=step_impl/
sonar.language=python
sonar.sourceEncoding=UTF-8
我收到以下错误消息:
01:05:46 INFO: Final Memory: 12M/185M
01:05:46 INFO: ------------------------------------------------------------------------
01:05:46 ERROR: Error during SonarScanner execution
01:05:46 ERROR: You must install a plugin that supports the language 'python'
01:05:46 ERROR:
01:05:46 ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
使用:sonar.language=py
问题解决了!
听起来sonar.language需要设置为选中的脚本后缀。不是语言名称本身!