前端配置 SonarScanner 和 SonarLint

2020-04-21  本文已影响0人  forJavascript
1. 下载SonarScanner

下载地址。选择对应的系统版本下载。(如果下载慢,我这儿有安装包)

2. 安装解压
3. 在项目中使用sonar-scanner
# must be unique in a given SonarQube instance
# 你的项目名称
sonar.projectKey=abcde

# --- optional properties ---

# defaults to project key
# 你的项目名称,一般跟projectKey对应
sonar.projectName=abcde

# defaults to 'not provided'
#sonar.projectVersion=1.0
 
# Path is relative to the sonar-project.properties file. Defaults to .
# 检查的代码路径
sonar.sources=./src  
 
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
3. 配置SonarLint插件
上一篇 下一篇

猜你喜欢

热点阅读