diff options
Diffstat (limited to 'platform/android/gradle/gradle-checkstyle.gradle')
-rw-r--r-- | platform/android/gradle/gradle-checkstyle.gradle | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/android/gradle/gradle-checkstyle.gradle b/platform/android/gradle/gradle-checkstyle.gradle new file mode 100644 index 0000000000..41a68f90ce --- /dev/null +++ b/platform/android/gradle/gradle-checkstyle.gradle @@ -0,0 +1,24 @@ +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/*LayerTest.java' + exclude '**/style/LightTest.java' + 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 +} |