Davide Giuseppe Farella
07/22/2022, 12:17 PMdetekt.config
accepts multiple files, but I’m unsure how it works. Do they have a particular priority? How could we add more than 1 config file to the Detekt plugin?gammax
07/22/2022, 12:18 PMDavide Giuseppe Farella
07/22/2022, 12:20 PMconfigPaths
but didn’t work 😄Tim Oltjenbruns
07/22/2022, 12:34 PMdetekt {
// option 1
config = files("path1", "path2")
// option 2
config.from("path1", "path2")
}
tasks.withType(io.gitlab.arturbosch.detekt.Detekt).configureEach {detektTask ->
// only option 2 available for task level configuration
config.from("path1, path2")
}
Tim Oltjenbruns
07/22/2022, 12:34 PMTim Oltjenbruns
07/22/2022, 12:35 PMDavide Giuseppe Farella
07/22/2022, 12:38 PMpath1
had SomeRule: active: true
and path2
has SomeRule: active: false
there's no guarantee whether the rule will be active or not, correct?
So, unless I wanna merge the 2 files manually, I guess the only option is not telling the teams that rules can be overridden 😄Tim Oltjenbruns
07/22/2022, 12:39 PMDavide Giuseppe Farella
07/22/2022, 12:40 PMTim Oltjenbruns
07/22/2022, 12:41 PMDavide Giuseppe Farella
07/22/2022, 12:42 PMTim Oltjenbruns
07/22/2022, 12:42 PMTim Oltjenbruns
07/22/2022, 12:42 PMTim Oltjenbruns
07/22/2022, 12:45 PMDavide Giuseppe Farella
07/22/2022, 12:45 PMDavide Giuseppe Farella
07/22/2022, 1:00 PMDavide Giuseppe Farella
07/22/2022, 1:01 PMfiles(custom-rules.yml, config.yml)