mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build] Always run Checkstyle after spotlessApply (#8794)
This avoids issues where Checkstyle will error on line length by having Spotless run first and fix up line lengths before Checkstyle sees the files.
This commit is contained in:
@@ -85,5 +85,9 @@ spotbugs {
|
||||
task javaFormat {
|
||||
dependsOn(tasks.withType(Checkstyle))
|
||||
dependsOn(tasks.withType(Pmd))
|
||||
dependsOn 'spotlessApply'
|
||||
}
|
||||
|
||||
tasks.withType(Checkstyle) {
|
||||
it.mustRunAfter 'spotlessApply'
|
||||
}
|
||||
javaFormat.dependsOn 'spotlessApply'
|
||||
|
||||
Reference in New Issue
Block a user