Skip to content

Commit

Permalink
chore: configure spotbugs to report only HIGH severity
Browse files Browse the repository at this point in the history
  • Loading branch information
miurahr committed Mar 23, 2024
1 parent 3b385f0 commit 13dae6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.github.spotbugs.snom.Confidence

plugins {
id 'java-library'
id 'maven-publish'
Expand Down Expand Up @@ -106,6 +108,10 @@ if (sonatypeUsername != null && sonatypePassword != null) {

def envIsCi = project.hasProperty('envIsCi') as Boolean

spotbugs {
reportLevel = Confidence.valueOf('HIGH')
}

tasks.register('spotbugsMainReport') {
def reportFile = file("build/reports/spotbugs/main.txt")
doLast {
Expand Down

0 comments on commit 13dae6b

Please sign in to comment.