sonar-scanner安装最佳实践

官方doc

安装教程

  • 打开官方doc,选择window 64-bit下载压缩包

  • 解压压缩包

  • 创建环境变量
    变量名: SONARSCANNERHOME
    变量值: D:\sonar\sonar-scanner-4.6.0.2311-windows(根据你解压路径修改)
    环境变量-PATH,增加 %SONARSCANNERHOME%\bin

  • 测试

cmd

sonar-scanner -v

result


INFO: Scanner configuration file: D:\sonar\sonar-scanner-4.6.0.2311-windows\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.6.0.2311
INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
INFO: Windows 10 10.0 amd64
上一篇:sonar安装及使用教程


下一篇:【环境搭建】SonarScanner