Skip to content

Commit

Permalink
add spotbugs to build.gradle implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
artoonie committed Jan 27, 2024
1 parent 3e58147 commit 85871e0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Build Releases
on:
release:
types: [published]
push:
branches:
- 'feature/airgap-on-1.3.2'

jobs:
release:
Expand Down
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id "application"
id "checkstyle"
// Latest version at: https://github.com/spotbugs/spotbugs-gradle-plugin/tags
id "com.github.spotbugs" version "5.0.9"
id "com.github.spotbugs" version "6.0.3"
id "idea"
id "java-library"
id "org.beryx.jlink" version "2.25.0"
Expand All @@ -23,6 +23,7 @@ dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
implementation 'org.bouncycastle:bc-fips:1.0.2.3'
implementation "com.github.spotbugs:spotbugs:4.8.3"
}

// ### Application plugin settings
Expand Down Expand Up @@ -59,7 +60,7 @@ System.setProperty("org.checkstyle.google.suppressionfilter.config",

spotbugs {
// Latest version at: https://github.com/spotbugs/spotbugs/tags
toolVersion = '4.7.1'
toolVersion = '4.8.3'
excludeFilter = file("config/spotbugs/exclude.xml")
}

Expand Down
8 changes: 8 additions & 0 deletions config/spotbugs/exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,12 @@
<Field name="xmlns"/>
<Bug code="UrF"/>
</Match>
<Match>
<Class name="network.brightspots.rcv.StreamingCvrReader"/>
<Bug code="CT"/>
</Match>
<Match>
<Class name="network.brightspots.rcv.Tabulator"/>
<Bug code="CT"/>
</Match>
</FindBugsFilter>

0 comments on commit 85871e0

Please sign in to comment.