Skip to content

Commit

Permalink
chore(codegen): fix checkstyle config (#5996)
Browse files Browse the repository at this point in the history
Checkstyle looks for suppressions based on the configDirectory,
which I didn't update when changing the config dir -> gradleConfig.
  • Loading branch information
milesziemer committed Apr 12, 2024
1 parent 2f5f32e commit 22f08b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,9 @@ subprojects {
* ====================================================
*/
apply(plugin = "checkstyle")

checkstyle {
configFile = File("${project.rootDir}/gradleConfig/checkstyle/checkstyle.xml")
configDirectory.set(rootProject.file("gradleConfig/checkstyle"))
}

tasks["checkstyleTest"].enabled = false
Expand Down Expand Up @@ -240,7 +241,7 @@ subprojects {
// Configure the bug filter for spotbugs.
spotbugs {
setEffort("max")
val excludeFile = File("${project.rootDir}/gradleConfig/spotbugs/filter.xml")
val excludeFile = rootProject.file("gradleConfig/spotbugs/filter.xml")
if (excludeFile.exists()) {
excludeFilter.set(excludeFile)
}
Expand Down

0 comments on commit 22f08b7

Please sign in to comment.