https://kotlinlang.org logo
#detekt
Title
# detekt
a

Artur Bosch

04/12/2020, 10:08 PM
@Gopal S Akshintala By default sonarqube uses the SonarKotlin profile (Sonar way) without the detekt rules. Have you modified the quality profile or created a new one containing the detekt rules? How many rules do you see in the Rules tab?
g

Gopal S Akshintala

04/13/2020, 2:11 AM
Hi @Artur Bosch, thanks a lot, that worked! I hope the detekt+sonar is a custom profile you created, I see only 211 (180 + 31) rules active, while the number of rule count for Kotlin is 229. Just curious from where do those extra 18 rules come from! Also what is the difference between detekt active and detekt all? Thanks!
a

Artur Bosch

04/13/2020, 8:10 AM
Yes,
detekt+sonar
is a custom profile. There is an option to copy a profile and select all rules from another profile. That's how I created it. Sonar itself creates some more rules for test cases or something.
4 Views