Marek Sebera Marek Sebera - 1 month ago 12
Android Question

Android Studio - Inspect Code - Exclude generated files

Is there any way, how to exclude android generated files (or manually specify excluded folders), from Analyze -> Inspect Code ?

Answer

I've found answer

Excluded folders won't be taken in account for Code Analysis

  • Right-click on top-level element and go to Open Module Settings
  • There you have listed single modules, select correct module
  • In right column select folders to be excluded and either right click -> exclude or button exclude above the file tree
  • In left column remove all leftover references to excluded directories from other groups than Excluded Folders

Excluding folders