is there a way prioritize a rule so it prints a wa...
# detekt
k
is there a way prioritize a rule so it prints a warning but doesn't count in the issues calculation? I'm getting some pushback on leaving Detekt enabled for the LargeClass and TooManyFunctions rules because some of the older Java code is a bit monolithic and no one wants to refactor as part of the Kotlin conversion 😞
a
Sorry for the late reply but Yes there is! take a look at the default-config.yml
build: maxIssues: 10 weights: # complexity: 2 # LongParameterList: 1 # style: 1 # comments: 1
You can write LargeClass: 0 and these findings won't lead to build error than
👍 1
You can also create a baseline.xml there LargeClass findings etc are stored and won;t get reported anymore
More info on the website: arturbosch.github.io/detekt
k
Thanks... Setting it to zero isn't obvious. Would be nice to call that out (or I just missed it) 🙂 Adding the suppress is working well too.