Add Checkstyle support

This commit is contained in:
veyndan 2017-02-28 14:53:59 +00:00
parent 770f989426
commit 8665264e0e
3 changed files with 246 additions and 0 deletions

View file

@ -1,4 +1,5 @@
apply plugin: 'com.android.application'
apply from: 'quality.gradle'
dependencies {
compile ('com.github.nicolas-raoul:Quadtree:211b6fe59ac48f') {

23
app/quality.gradle Normal file
View file

@ -0,0 +1,23 @@
apply plugin: 'checkstyle'
check.dependsOn 'checkstyle'
checkstyle {
toolVersion = '7.5.1'
}
task checkstyle(type: Checkstyle) {
configFile file("${project.rootDir}/script/style/checkstyle.xml")
source 'src'
include '**/*.java'
exclude '**/gen/**'
classpath = files()
reports {
html {
enabled true
destination "$project.buildDir/reports/checkstyle/checkstyle.html"
}
}
}