Kevin
02/15/2023, 1:11 PMdetekt
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.Sam
02/15/2023, 1:13 PM•- Runs detekt WITHOUT type resolutiondetekt
•- Runs detekt with type resolution on thedetektMain
source setmain
Kevin
02/15/2023, 1:14 PM