summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSetup Wizard Team <android-setup-team-eng@google.com>2018-08-24 14:16:17 -0700
committerMaurice Lam <yukl@google.com>2018-10-01 20:21:34 -0700
commitf48bfd7ec2e5d19775a35b187c6a30b5712199d7 (patch)
tree3bdb73e788e4f7c1296d3875172591602a2c42d7
parenta53b3983bf1477c8b2df96f5608bf449fc113b6e (diff)
downloadsetupwizard-f48bfd7ec2e5d19775a35b187c6a30b5712199d7.tar.gz
Remove style checks and upgrade Robolectric
Bug: 112048937 Test: ./gradlew test Change-Id: I4aa4bda4d5b422c49bada65f9e27bffc931bac15
-rw-r--r--PREUPLOAD.cfg3
-rw-r--r--library/self.gradle4
-rw-r--r--tools/checkstyle/checkstyle.xml20
-rw-r--r--tools/checkstyle/checkstyle_suppression.xml14
4 files changed, 2 insertions, 39 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index b45eaff..e6fe0c4 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -1,7 +1,4 @@
[Hook Scripts]
-checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py
- --sha ${PREUPLOAD_COMMIT}
- --config_xml tools/checkstyle/checkstyle.xml
[Builtin Hooks]
commit_msg_test_field = true
diff --git a/library/self.gradle b/library/self.gradle
index 78e5011..f649581 100644
--- a/library/self.gradle
+++ b/library/self.gradle
@@ -51,8 +51,8 @@ android.sourceSets {
java.srcDirs = ['test/robotest/src']
dependencies {
- testImplementation 'org.robolectric:robolectric:3.6.1'
- testImplementation 'org.robolectric:shadows-framework:3.6.1'
+ testImplementation 'org.robolectric:robolectric:4.0-alpha-3'
+ testImplementation 'org.robolectric:shadows-framework:4.0-alpha-3'
testImplementation 'junit:junit:4.+'
testImplementation 'com.google.truth:truth:0.31'
testImplementation 'org.mockito:mockito-core:1.9.5'
diff --git a/tools/checkstyle/checkstyle.xml b/tools/checkstyle/checkstyle.xml
deleted file mode 100644
index 0dbccae..0000000
--- a/tools/checkstyle/checkstyle.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd" [
- <!ENTITY defaultCopyrightCheck SYSTEM "../../../../../prebuilts/checkstyle/default-copyright-check.xml">
- <!ENTITY defaultJavadocChecks SYSTEM "../../../../../prebuilts/checkstyle/default-javadoc-checks.xml">
- <!ENTITY defaultTreewalkerChecks SYSTEM "../../../../../prebuilts/checkstyle/default-treewalker-checks.xml">
- <!ENTITY defaultModuleChecks SYSTEM "../../../../../prebuilts/checkstyle/default-module-checks.xml">
-]>
-
-<module name="Checker">
- &defaultModuleChecks;
- &defaultCopyrightCheck;
- <module name="TreeWalker">
- &defaultJavadocChecks;
- &defaultTreewalkerChecks;
- </module>
-
- <module name="SuppressionFilter">
- <property name="file" value="tools/checkstyle/checkstyle_suppression.xml" />
- </module>
-</module>
diff --git a/tools/checkstyle/checkstyle_suppression.xml b/tools/checkstyle/checkstyle_suppression.xml
deleted file mode 100644
index 6bf7b21..0000000
--- a/tools/checkstyle/checkstyle_suppression.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE suppressions PUBLIC "-//Puppy Crawl//DTD Suppressions 1.1//EN" "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
-<suppressions>
-
- <!-- Note: Checkstyle puts the absolute path of files through the suppress filter, so the
- patterns below will match sub-directories. Notably, for overlays where the path is
- something like overlay/frameworks/opt/setupwizard will match the regex filter
- "frameworks/opt/setupwizard". This is probably OK for most cases since they are overlay
- of the original app and should have the same coding style. -->
-
- <!-- Robolectric uses magic method names like `__constructor__` -->
- <suppress files="/robotest/" checks="MethodName" />
-
-</suppressions>