【发布时间】:2017-09-08 09:17:36
【问题描述】:
我正在尝试使用 SonarQube 对我的 COBOL 代码进行代码分析。我安装了 sonarcobol 插件并使用我正在尝试检查分析的 sonarscanner。当我在各个目录中执行 sonar-scanner 时,它显示成功但无法在 SonarQube 服务器中看到分析。
附件是我的 sonar-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
【问题讨论】:
-
请联系商业产品支持。
-
COBOL 附带商业支持 rit....顺便说一句,为什么要扫描 COBOL 我认为您应该开始一一抛弃它们并转向新技术,这只是我的拙见。与采用新的 tecg 相比,运行 COBOL 的成本会更高
-
@shiva,你为什么会这样想,如果没有相当的资格,这听起来很荒谬。如果没有你喜欢的“tecg”怎么办?
-
@bill 是的,我几乎像被灯光卡住的人一样说话。如果设计某种 ETL 解决方案来提取数据,那么技术的限制只能由想象力强加
-
我通过在 sonar-project.properties 中添加 sonar.languages=COBOL 解决了这个问题
标签: sonarqube cobol sonar-runner sonarqube-scan