无法使用 SonarQube 扫描 Cobol 项目
Unable to scan Cobol project using SonarQube
我正在尝试使用 SonarQube 对我的 COBOL 代码进行代码分析。我安装了 sonarcobol 插件并使用 sonarscanner 我正在尝试检查分析。当我在各自的目录中执行声纳扫描仪时,它说成功但无法在 SonarQube 服务器中看到分析。
附上我的声纳-project.properties
sonar.host.url=http://xxxxx:9000/
sonar.login=admin
sonar.password=admin
sonar.projectKey=cobol
sonar.projectName=cobol
sonar.projectVersion=1.0
sonar.sources=.
sonar.sourceEncoding=UTF-8
## Cobol Specific Properties
# comma-separated paths to directories with copybooks
sonar.cobol.copy.directories=copybooks
# comma-separated list of suffixes
sonar.cobol.file.suffixes=cbl,cpy
sonar.cobol.copy.suffixes=cpy
## Flex Specific Properties
# retrieve code coverage data from the Cobertura report
#sonar.flex.cobertura.reportPath=coverage-report/coverage-cobertua-flex.xml
# PL/I Specific Properties
sonar.pli.marginLeft=2
sonar.pli.marginRight=0
来自 :
I solved this by adding sonar.languages=COBOL in sonar-project.properties
为方便起见粘贴在这里。
我正在尝试使用 SonarQube 对我的 COBOL 代码进行代码分析。我安装了 sonarcobol 插件并使用 sonarscanner 我正在尝试检查分析。当我在各自的目录中执行声纳扫描仪时,它说成功但无法在 SonarQube 服务器中看到分析。
附上我的声纳-project.properties
sonar.host.url=http://xxxxx:9000/
sonar.login=admin
sonar.password=admin
sonar.projectKey=cobol
sonar.projectName=cobol
sonar.projectVersion=1.0
sonar.sources=.
sonar.sourceEncoding=UTF-8
## Cobol Specific Properties
# comma-separated paths to directories with copybooks
sonar.cobol.copy.directories=copybooks
# comma-separated list of suffixes
sonar.cobol.file.suffixes=cbl,cpy
sonar.cobol.copy.suffixes=cpy
## Flex Specific Properties
# retrieve code coverage data from the Cobertura report
#sonar.flex.cobertura.reportPath=coverage-report/coverage-cobertua-flex.xml
# PL/I Specific Properties
sonar.pli.marginLeft=2
sonar.pli.marginRight=0
来自
I solved this by adding sonar.languages=COBOL in sonar-project.properties
为方便起见粘贴在这里。