dimsuz
05/04/2022, 5:15 PMsrc/main/resources/config/config.yml
• published to maven local
• In a sample project added `detektPlugins("com.examplemy ruleset1.0.0")
• In the config/config.yml
set rules as active:true
• didn't add anything to sample project's detekt-config.yml
Result: rule set is not applied.
but if I add in sample's `detekt-config.yml`:
compose:
MyRule:
active: true
Then rule gets applied and reports errors.
Did I miss something?dimsuz
05/04/2022, 5:16 PMclass ReusedModifierInstance(config: Config = Config.empty) : Rule(config)
is this ok?dimsuz
05/04/2022, 5:23 PMgammax
05/04/2022, 5:47 PMDid I miss something?That's the expected behavior no? Or are you expecting something different
dimsuz
05/04/2022, 5:56 PMconfig.yml
in my ruleset and enable rules there, they'll be applied without explicitly specifying them in detekt-config.yml
. Detekt 1.20.0
changelog seemed to imply that this was done for the formatting
ruleset.dimsuz
05/04/2022, 5:58 PMconfig.yml
I've set rules as active:true
. Edited steps above.Brais Gabin
05/05/2022, 6:59 AMdimsuz
05/05/2022, 10:35 AMdetektGeneratedConfig
.
By the way, neither is formatting
.
I have added both my and detekt-formatting rulesets to the config
dependencies {
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:1.20.0"
detektPlugins "ru.kode:detekt-rules-compose:1.0.0"
}
then removed detekt-config.yml
, ran detektGenerateConfig
and neither my ruleset nor formatting rules are appended.Brais Gabin
05/05/2022, 10:40 AMdimsuz
05/05/2022, 10:44 AMBrais Gabin
05/05/2022, 10:45 AMdimsuz
05/05/2022, 10:45 AMdimsuz
05/05/2022, 10:45 AMdimsuz
05/05/2022, 10:58 AMrocketraman
05/05/2022, 1:42 PMdetectGenerateConfig
.