summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/gradle-checkstyle.gradle
blob: 420ccb473afb1f76a50e04d8c1bf09d6d7be70b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
apply plugin: 'checkstyle'

checkstyle {
    toolVersion = "7.1.1" // 7.3
    configFile = "../checkstyle.xml" as File
}

task checkstyle(type: Checkstyle) {
    description 'Checks if the code adheres to coding standards'
    group 'verification'
    configFile file("../checkstyle.xml")
    source 'src'
    include '**/*.java'
    exclude '**/gen/**'
    exclude '**/style/layers/Property.java'
    exclude '**/style/layers/PropertyFactory.java'
    exclude '**/style/layers/*Layer.java'
    exclude '**/style/light/Light.java'
    exclude '**/Expression.java' // allowing single character signature as e()
    classpath = files()
    ignoreFailures = false
}