Skip to content

Commit

Permalink
[ci] Upgrade spotbugs to 5.0.14 (deepjavalibrary#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored May 11, 2023
1 parent 5f6f86a commit 96313a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "com.github.spotbugs" version "4.7.1" apply false
id "com.github.spotbugs" version "5.0.14" apply false
}

defaultTasks 'build'
Expand Down
9 changes: 3 additions & 6 deletions tools/conf/findbugs-exclude.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<FindBugsFilter>
<Match>
<Bug pattern="DM_EXIT,DMI_EMPTY_DB_PASSWORD,DMI_HARDCODED_ABSOLUTE_FILENAME,EI_EXPOSE_REP,EI_EXPOSE_REP2,SF_SWITCH_FALLTHROUGH,NM_CONFUSING"/>
<Bug pattern="DM_EXIT,DMI_EMPTY_DB_PASSWORD,DMI_HARDCODED_ABSOLUTE_FILENAME,EI_EXPOSE_REP,EI_EXPOSE_REP2,EI_EXPOSE_STATIC_REP2,MS_EXPOSE_REP,SF_SWITCH_FALLTHROUGH,NM_CONFUSING"/>
</Match>
<!-- low priority issues-->
<Match>
<Bug pattern="DM_CONVERT_CASE,SE_TRANSIENT_FIELD_NOT_RESTORED,UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR,BC_UNCONFIRMED_CAST_OF_RETURN_VALUE"/>
</Match>
<Match>
<Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS,DB_DUPLICATE_SWITCH_CLAUSES,BC_UNCONFIRMED_CAST"/>
<Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS,DB_DUPLICATE_SWITCH_CLAUSES,BC_UNCONFIRMED_CAST,URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD,URF_UNREAD_FIELD"/>
</Match>

<!-- function suppression -->
<Match>
<Bug pattern="IS2_INCONSISTENT_SYNC"/>
<Class name="~ai\.djl\.python\.engine\.PyProcess"/>
<Bug pattern="MS_FINAL_PKGPROTECT,MS_PKGPROTECT,NM_METHOD_NAMING_CONVENTION,SF_SWITCH_NO_DEFAULT,DC_DOUBLECHECK,IS2_INCONSISTENT_SYNC"/>
</Match>
</FindBugsFilter>

0 comments on commit 96313a3

Please sign in to comment.