7
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Android Studioのinspect codeで特定のディレクトリやファイルを分析対象外にしたい

Posted at

概要

Android Studioのinspect codeはAndroid Lintの実行を含めコードの分析をしてくれるので便利な機能です。現在関わっているプロジェクトでgenerateしたコードをこのinspect codeの対象から外したかったのでやり方を調べました。

設定方法

モジュールレベルのbuild.gradleに以下の設定を追加します。

plugins {
  id 'idea'
}
// buidScript block等が既にある場合 apply plugin: 'idea'

idea {
    module {
        excludeDirs = [file('hoge'), file('fuga/foo.md')]
    }
}

excludeDirs に除外したいディレクトリやファイルを記述します。

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?