mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
Add checkstyle configuration and apply to all modules
This commit is contained in:
29
gradle/checkstyle.gradle
Normal file
29
gradle/checkstyle.gradle
Normal file
@@ -0,0 +1,29 @@
|
||||
task checkstyleMain(type: Checkstyle) {
|
||||
source 'src/main/java'
|
||||
include '**/*.java'
|
||||
classpath = files()
|
||||
reports {
|
||||
xml {
|
||||
destination file("build/reports/checkstyle/main.xml")
|
||||
}
|
||||
html {
|
||||
destination file("build/reports/checkstyle/main.html")
|
||||
}
|
||||
}
|
||||
check.dependsOn it
|
||||
}
|
||||
|
||||
task checkstyleTest(type: Checkstyle) {
|
||||
source 'src/test/java'
|
||||
include '**/*.java'
|
||||
classpath = files()
|
||||
reports {
|
||||
xml {
|
||||
destination file("build/reports/checkstyle/test.xml")
|
||||
}
|
||||
html {
|
||||
destination file("build/reports/checkstyle/test.html")
|
||||
}
|
||||
}
|
||||
check.dependsOn it
|
||||
}
|
||||
Reference in New Issue
Block a user