Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 6be7602d authored by tobiasKaminsky's avatar tobiasKaminsky
Browse files

wip

parent 1a9a0992
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -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"
@@ -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'
        }
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -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