Added checkstyle.
This commit is contained in:
parent
919661095c
commit
f29dddf82c
1 changed files with 13 additions and 0 deletions
13
build.gradle
13
build.gradle
|
@ -1,4 +1,5 @@
|
|||
plugins {
|
||||
id 'checkstyle'
|
||||
id 'java'
|
||||
id 'jacoco'
|
||||
id 'maven-publish'
|
||||
|
@ -148,6 +149,18 @@ tasks.withType(SpotBugsTask) {
|
|||
excludeFilter = file("$projectDir/config/spotbugs/excludeFilter.xml")
|
||||
}
|
||||
|
||||
tasks.withType(Checkstyle) {
|
||||
reports {
|
||||
xml.enabled false
|
||||
html.enabled true
|
||||
//html.stylesheet resources.text.fromFile('config/xsl/checkstyle-custom.xsl')
|
||||
}
|
||||
}
|
||||
|
||||
checkstyle {
|
||||
toolVersion "8.18"
|
||||
}
|
||||
|
||||
compileJava {
|
||||
options.compilerArgs.add('-proc:none')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue