Skip to content
Snippets Groups Projects
Unverified Commit f03b8848 authored by Anne's avatar Anne Committed by GitHub
Browse files

Apply spotbugs to OSS repo (#12941)

* add spotbugs configuration
parent e84d678c
No related branches found
No related tags found
No related merge requests found
import com.bmuschko.gradle.docker.tasks.image.DockerBuildImage
import com.github.spotbugs.snom.SpotBugsTask
buildscript {
repositories {
......@@ -16,7 +17,7 @@ plugins {
id 'pmd'
id 'com.diffplug.spotless' version '6.0.0'
id 'com.github.hierynomus.license' version '0.16.1'
id 'com.github.spotbugs' version '5.0.5'
id 'com.github.spotbugs' version '5.0.6'
id 'version-catalog'
id 'maven-publish'
}
......@@ -257,6 +258,15 @@ subprojects {
cloudStorageTestTagName = 'cloud-storage'
}
spotbugs {
ignoreFailures = false
effort = 'max'
excludeFilter = rootProject.file('spotbugs-exclude-filter-file.xml')
reportLevel = 'high'
showProgress = false
toolVersion = '4.6.0'
}
test {
jacoco {
enabled = true
......@@ -303,12 +313,7 @@ subprojects {
}
finalizedBy jacocoTestReport
}
spotbugs {
reportLevel = 'high'
excludeFilter = rootProject.file('spotbugs-exclude-filter-file.xml')
}
dependencies {
if (project.name != 'airbyte-commons') {
implementation project(':airbyte-commons')
......@@ -369,6 +374,14 @@ subprojects {
duplicatesStrategy DuplicatesStrategy.INCLUDE
}
tasks.withType(SpotBugsTask) {
// Reports can be found under each subproject in build/spotbugs/
reports {
xml.required = false
html.required = true
}
}
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
check.dependsOn 'jacocoTestCoverageVerification'
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment