Skip to content

Commit 22f08b7

Browse files
authored
chore(codegen): fix checkstyle config (#5996)
Checkstyle looks for suppressions based on the configDirectory, which I didn't update when changing the config dir -> gradleConfig.
1 parent 2f5f32e commit 22f08b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

codegen/build.gradle.kts

+3-2
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ subprojects {
183183
* ====================================================
184184
*/
185185
apply(plugin = "checkstyle")
186+
186187
checkstyle {
187-
configFile = File("${project.rootDir}/gradleConfig/checkstyle/checkstyle.xml")
188+
configDirectory.set(rootProject.file("gradleConfig/checkstyle"))
188189
}
189190

190191
tasks["checkstyleTest"].enabled = false
@@ -240,7 +241,7 @@ subprojects {
240241
// Configure the bug filter for spotbugs.
241242
spotbugs {
242243
setEffort("max")
243-
val excludeFile = File("${project.rootDir}/gradleConfig/spotbugs/filter.xml")
244+
val excludeFile = rootProject.file("gradleConfig/spotbugs/filter.xml")
244245
if (excludeFile.exists()) {
245246
excludeFilter.set(excludeFile)
246247
}

0 commit comments

Comments
 (0)