工具

SonarLint Eclipse 插件安装使用手册

אשכולות [ קודם | הבא ]
SonarLint Eclipse 插件安装使用手册
sonar sonarlint
תשובה
03:42 23/02/17
# 资源
 
# 安装
  • 下载 SonarLint Eclipse插件离线安装包,当前版本是2.6(SonarLint 版本对 SonarQube 服务器的 Java插件版本有要求,并不是越高越好
  • 通过 Help > Install new software ... 安装插件
 
# 使用
  • 通过 Window > Show view > Other... 打开 SonarLint On-The-Fly 视图
  • 当打开 Java 文件时,SonarLint会自动扫描代码缺陷
 
# Connected Mode
该模式将本地项目与 SonarQube 服务器上的项目关联起来,使SonarLint 可以使用服务器上的项目配置,例如排除文件列表和自定义规则。
 
  • 打开 SonarQube Servers 视图,新建 Server
  • 项目右键菜单选择SonarLint > Bind to a SonarQube Server ...,在弹出向导中将本地项目与 SonarQube 服务器项目关联
0 (0 הצבעות)