detekt/detekt

List currently active rules

Aperta

#5524 aperta il 9 nov 2022

 (9 commenti) (0 reazioni) (0 assegnatari)Kotlin (834 fork)batch import
featurehelp wanted

Metriche repository

Star
 (6942 stelle)
Metriche merge PR
 (Merge medio 4g 9h) (65 PR mergiate in 30 g)

Descrizione

When I run ./gradlew detekt, it lists only issues in my code.

I'd like to see a list of currently active rules, combining the default and my own configs. This would be an useful overview, since I disable many rules in my config, and it's hard to track which are actually enabled.

Bonus points for comparison with the default config, so I see which custom configs I could delete.

I'd like a table such as this in a report for example.

ruleset rule default config custom config
formatting AnnotationOnSeparateLine disabled -
formatting ChainWrapping enabled disabled
...

Guida contributor