Adds checkstyle to CI (#7442)

* adds checkstyle to CI

* fixed gradlew path

* resolved testapp checkstyle violations

* added back mapboxMap variable for test

* checkstyle annotations

* checkstyle SDK round 1

* maps package checkstyle

* rest of SDK checkstyle

* checkstyle gesture library

* checkstyle test

* finished rest of test checkstyle

* resolved all checkstyle errors

* fixed class name

* removed old test file

* fixed camera postion test

* fixed native crash
This commit is contained in:
Cameron Mace
2016-12-16 16:19:15 -05:00
committed by GitHub
parent f95b4838ea
commit 20b958301e
266 changed files with 40182 additions and 39049 deletions

View File

@@ -37,3 +37,4 @@ dependencies {
}
apply from: 'gradle-config.gradle'
apply from: 'gradle-checkstyle.gradle'

View File

@@ -0,0 +1,17 @@
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/**'
classpath = files()
ignoreFailures = false
}

View File

@@ -31,7 +31,8 @@ public class FeatureOverviewActivity extends WearableActivity implements Feature
wearableRecyclerView.setOffsettingHelper(offsettingHelper);
exampleItemModels = new ArrayList<>();
exampleItemModels.add(new Feature(R.string.activity_simple_mapview_title, new Intent(FeatureOverviewActivity.this, SimpleMapViewActivity.class)));
exampleItemModels.add(new Feature(R.string.activity_simple_mapview_title, new Intent(FeatureOverviewActivity.this,
SimpleMapViewActivity.class)));
FeatureAdapter exampleAdapter = new FeatureAdapter(FeatureOverviewActivity.this, exampleItemModels);
wearableRecyclerView.setAdapter(exampleAdapter);