Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 722
Kapouter Avatar asked Mar 21 '26 16:03

Kapouter


1 Answers

SonarLint issue tracker has the open feature request for that:

  • Configure in IDE files to exclude from analysis

More details can be found here.

like image 99
CrazyCoder Avatar answered Mar 25 '26 01:03

CrazyCoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!