LoginSignup
6
7

More than 5 years have passed since last update.

sonarlintのEclipse設定

Last updated at Posted at 2018-06-18

前提:SonarQubeのインストールとプロジェクト含めての各設定が完了であること

・EclipseのMarketplaceで、SonarLint を検索してインストールし、再起動します。
・SonarQube Servers ビューで、SonarQube Server URLなどの情報を入力してサーバー設定を実施
  ※セキュリティのため、Choose authentication methodはToken を推奨。TokenはSonarQubeからユーザーごとに発行できる
・対象プロジェクトを右クリックし、[SonarLint] -> [Bind to a SonarQube project…] -> [Auto bind selected projects] を選択しSonarQube Serverに関連付けをします。Auto bind がうまくいかない場合は、SonarQube Projectを手動入力して関連付けをします。
・対象プロジェクトを右クリックし、[SonarLint] -> [Analyze] で解析実施

■注意点
SonarLint とSonarQubeの解析結果が不一致であることが判明しました。
これは、SoanrLintの制約事項です。
コード重複や、テストカバレッジなど一部の解析機能が使えない
例)
2 duplicated blocks of code must be removed.

参照:https://www.sonarlint.org/eclipse/

6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7