mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
Add Checkstyle support
This commit is contained in:
parent
770f989426
commit
8665264e0e
3 changed files with 246 additions and 0 deletions
|
|
@ -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
23
app/quality.gradle
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue