Skip to content

Commit 7fd8697

Browse files
committed
Add Findbugs
1 parent 12ae9d6 commit 7fd8697

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ allprojects {
9090
apply plugin: 'jacoco'
9191
apply plugin: 'net.ltgt.errorprone'
9292
apply plugin: 'checkstyle'
93+
apply plugin: 'findbugs'
9394

9495
configurations.errorprone {
9596
resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.0.9'
@@ -106,6 +107,17 @@ allprojects {
106107
it.dependsOn = []
107108
}
108109

110+
tasks.withType(FindBugs) {
111+
it.dependsOn = []
112+
}
113+
114+
findbugs {
115+
// toolVersion = "2.0.1"
116+
sourceSets = [sourceSets.main]
117+
excludeFilter = new File(rootDir, "findBugsSuppressions.xml")
118+
effort = "max"
119+
}
120+
109121
repositories {
110122
mavenCentral()
111123
jcenter()

findBugsSuppressions.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<FindBugsFilter>
2+
<Match>
3+
<Package name="~edu\.wpi\.grip\.generated.*" />
4+
</Match>
5+
<Match>
6+
<Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE" />
7+
</Match>
8+
</FindBugsFilter>

0 commit comments

Comments
 (0)