We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c855ad0 commit f7a5e04Copy full SHA for f7a5e04
buildSrc/src/main/kotlin/ai.spotbugs-conventions.gradle.kts
@@ -32,13 +32,10 @@ tasks {
32
enabled = false
33
}
34
35
+ // Configure SpotBugs tasks to handle missing classes in 6.2.x
36
withType<com.github.spotbugs.snom.SpotBugsTask>().configureEach {
- reports.create("xml") {
37
- required.set(false)
38
- }
39
- // SpotBugs 6.2.x is stricter about missing classes and fails with exit code 3
40
- // We only use SpotBugs for the findsecbugs plugin (security analysis) and suppress everything else
41
- // So ignoring failures here is safe since we use errorprone for other static analysis
+ // Direct approach: Set the task to not fail on errors
+ // This is the most reliable way to handle SpotBugs 6.2.x missing class issues
42
ignoreFailures = true
43
44
0 commit comments