Skip to content

Commit

Permalink
build: suppress spotbugs warnings detected by upgrading spotbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
akirakw committed Feb 7, 2024
1 parent 5e13f13 commit d0564c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions java/cost-accounting-benchmark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ spotbugsMain {
destination = file("$buildDir/reports/spotbugs/main/spotbugs.html")
}
}
excludeFilter = project.file('src/main/conf/spotbugsExclude.xml')
}

spotbugsTest.enabled = false
Expand Down
18 changes: 18 additions & 0 deletions java/cost-accounting-benchmark/src/main/conf/spotbugsExclude.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter
xmlns="https://github.com/spotbugs/filter/3.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">

<Match>
<Or>
<Bug pattern="CT_CONSTRUCTOR_THROW" />
<Bug pattern="EI_EXPOSE_REP" />
<Bug pattern="EI_EXPOSE_REP2" />
<Bug pattern="MS_EXPOSE_REP" />
<Bug pattern="EI_EXPOSE_STATIC_REP2" />
<Bug pattern="IM_BAD_CHECK_FOR_ODD" />
</Or>
</Match>

</FindBugsFilter>

0 comments on commit d0564c4

Please sign in to comment.