SonarLint 使用

基本上开箱即用。

安装

手动下载:
不同版本
下载到本地,然后从Idea的settings->Plugins->settings install plugin from disk,需要保留zip包的形式。
下载针对idea的zip包:https://www.sonarlint.org/intellij/

也可以直接从idea的plugin的market上选择在线安装。

或者直接从源码安装? sonarlint-intellij

使用

Connect to SonarCloud or to a SonarQube server
To have rules, issues and exclusions synched. In IntelliJ preferences, first connect to a server via the SonarLint General Settings, then bind the project under SonarLint Project Settings.

插件的设置会在IDEA的 settings--> other settings可找到。

配置到对应的SonarServer,搭建Server可参考 Basic SonarQube SonarScanner

按照提示使用token(可以在users目录里手动生成)连接后,会自动判断连接状态。

更详细内容,参考SonarLint for IntelliJ IDEA图文教程

你可能感兴趣的:(SonarLint 使用)