Hi all, I have a question:
I'm running the detekt gradle plugin (version 1.22.0) and the
detekt
task is using different rules than
detektMain
. It's not skipping over any files, but it is applying different rules in the same file.
My detekt config in gradle looks like this:
detekt {
config = files("../detekt.yml")
buildUponDefaultConfig = true
source = files("src")
}
And detekt.yml looks like this:
complexity:
active: true
CognitiveComplexMethod:
active: true
threshold: 5
naming:
InvalidPackageDeclaration:
active: false
I'm using gradle 7.5.1 and targeting jdk 11.
Namely,
detektMain
includes
UnnecessaryFilter
and
VarCouldBeVal
while
detekt
does not.
Is this expected? I didn't find anything on google or in the github issues.