Mike Wolfson
10/25/2021, 5:55 PM1.18.1
but switched to 1.17..1
and saw the same thing.
I am seeing a weird thing, where when I get my Detekt issues down to 0, the configuration file seems to get ignored...
I mean if I have at least 1 error, I will see it, but and as soon as I fix it - so I am down to 0 issues, Detekt seems to ignore my config file (and I see ALL the issues I have carefully Suppressed)
My detekt config:
apply plugin: "io.gitlab.arturbosch.detekt"
detekt {
toolVersion = detekt_version
buildUponDefaultConfig = true
autoCorrect = true
source = files("$projectDir")
config = files("$projectDir/analysis/detekt/detekt.yml")
parallel = true
reports {
html.enabled = true
xml.enabled = false
txt.enabled = false
}
}
Is there some default value I need to set to change this functionality? I feel like this must be something I have configured wrong, since I can see this in 1.17.1
and 1.18.1
(so it is not likely a bug, or this would be a bigger deal.build:
maxIssues: 0
excludeCorrectable: false
# weights:
# complexity: 2
# LongParameterList: 1
# style: 1
# comments: 1
config:
validation: true
warningsAsErrors: false
# when writing own rules with new properties, exclude the property path e.g.: 'my_rule_set,.*>.*>[my_property]'
excludes: ''
gammax
10/25/2021, 7:24 PMsource
is suboptimal, as your specifying projectDir which will include also the build folders and more.src/main/...
) Or tweak it a bitMike Wolfson
10/25/2021, 7:46 PM