Loading library/build.gradle +7 −4 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:8.2.1' classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.6' classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:5.1.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.4" classpath "org.jacoco:org.jacoco.core:$jacoco_version" Loading Loading @@ -97,10 +97,13 @@ tasks.withType(SpotBugsTask){task -> classes = files("$project.buildDir/intermediates/javac/${variantName}") excludeFilter = file("${project.rootDir}/scripts/analysis/spotbugs-filter.xml") reports { xml.enabled = false xml { required = true } html { enabled = true destination = file("$project.buildDir/reports/spotbugs/spotbugs.html") required = true outputLocation = file("$project.buildDir/reports/spotbugs/spotbugs.html") stylesheet = 'fancy.xsl' } } } Loading scripts/analysis/spotbugs-up.rb +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ puts "running Spotbugs..." system './gradlew spotbugsDebug 1>/dev/null 2>&1' # find number of warnings current_warning_count = `./scripts/analysis/spotbugsSummary.py --total`.to_i current_warning_count = `./scripts/analysis/spotbugsSummary.py --file library/build/reports/spotbugs/debug.xml --total`.to_i puts "found warnings: " + current_warning_count.to_s # get warning counts from target branch Loading Loading
library/build.gradle +7 −4 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:8.2.1' classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.6' classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:5.1.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.4" classpath "org.jacoco:org.jacoco.core:$jacoco_version" Loading Loading @@ -97,10 +97,13 @@ tasks.withType(SpotBugsTask){task -> classes = files("$project.buildDir/intermediates/javac/${variantName}") excludeFilter = file("${project.rootDir}/scripts/analysis/spotbugs-filter.xml") reports { xml.enabled = false xml { required = true } html { enabled = true destination = file("$project.buildDir/reports/spotbugs/spotbugs.html") required = true outputLocation = file("$project.buildDir/reports/spotbugs/spotbugs.html") stylesheet = 'fancy.xsl' } } } Loading
scripts/analysis/spotbugs-up.rb +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ puts "running Spotbugs..." system './gradlew spotbugsDebug 1>/dev/null 2>&1' # find number of warnings current_warning_count = `./scripts/analysis/spotbugsSummary.py --total`.to_i current_warning_count = `./scripts/analysis/spotbugsSummary.py --file library/build/reports/spotbugs/debug.xml --total`.to_i puts "found warnings: " + current_warning_count.to_s # get warning counts from target branch Loading