android-studiointellij-ideasonarlintsonarlint-intellij

Exclude generated classes from sonarlint analysis


When I run the sonarlint analysis, unwanted generated classes are also analyzed (R.java, classes generated by Dagger, etc.). It doesn't happen when I run the Android Studio Analyze -> Inspect code....

How can I specify a specific scope for the sonarlint analysis or exclude generated files ?


Solution

  • SonarLint issue tracker has the open feature request for that:

    More details can be found here.