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:
@@ -37,3 +37,4 @@ dependencies {
|
||||
}
|
||||
|
||||
apply from: 'gradle-config.gradle'
|
||||
apply from: 'gradle-checkstyle.gradle'
|
||||
@@ -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
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user