LoginSignup
0
1

More than 1 year has passed since last update.

Android studioでspotbugs(プラグイン)を使う

Posted at

これ(FindBugsが開発休止中のためフォークされたみたい)
https://spotbugs.readthedocs.io/ja/latest/index.html

インストール

File -> Settings -> Plugins
Marketplaceタブを選んだあと検索窓にspotbugsと入力
多分1個しかないと思うけど、Tagir Valeevさんのを使いました。
⇒Install ⇒ OK

設定

logcatなどのWindowの並びにspotbugsのタブがあるので選択
⇒レンチマーククリック
 ⇒Compile affected files before analyzeのチェックを外す
  (環境によるかもしれない。
   こちらの環境ではR.javaのビルドエラーが大量に出てしまったので)

実行

左のいっぱい並んでるアイコンの一番左の上から6番目をクリック
ツールチップはAnalyze Project Files Not Including Test Sources. って出てくる
image.png

しばらく待ったらアイコンのすぐ右の窓にいっぱい出てくる。

0
1
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
0
1