Is there any way, how to exclude android generated files (or manually specify excluded folders), from Analyze -> Inspect Code ?
Use a custom scope. After clicking Analyze > Inspect Code, from the Specify Inspection Scope dialog, click "..." after "Custom scope". Define a new scope. Recursively include Android
, app
, and whatever else is important. Then recursively exclude folders you don't want.
I like to put my generated code in the build
folder and exclude it. (To get code in the build
folder to be included in the build, include it in app.gradle
in android/sourceSets/main/java.srcDirs
.)