diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2018-01-10 19:39:47 +0100 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2018-01-11 21:31:25 +0100 |
commit | 2b037065e3760d5d64c0c26a8c15a66707044204 (patch) | |
tree | 36f02a16cb2e40e9b06af16571f79e90a40171c4 /platform/android/gradle/gradle-checkstyle.gradle | |
parent | 7c0e8fd9808b36363dbdc82891cdecf6badf8318 (diff) | |
download | qtlocation-mapboxgl-2b037065e3760d5d64c0c26a8c15a66707044204.tar.gz |
[android] - move gradle files to dedicated folder
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 +} |