From cf7a48b1de0a02360b9c6dc8e31f3add1b4ca794 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Thu, 9 Jan 2020 08:59:23 -0800 Subject: [PATCH] Disabling some repo checks for rebolectric files Change-Id: I025db602f14f7696e7f3165357afbec0cfa8e713 --- PREUPLOAD.cfg | 2 +- tools/checkstyle.xml | 20 ++++++++++++++++++++ tools/checkstyle_suppression.xml | 8 ++++++++ print_db.py => tools/print_db.py | 0 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 tools/checkstyle.xml create mode 100644 tools/checkstyle_suppression.xml rename print_db.py => tools/print_db.py (100%) diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg index f3db20e3b6..912395970f 100644 --- a/PREUPLOAD.cfg +++ b/PREUPLOAD.cfg @@ -1,2 +1,2 @@ [Hook Scripts] -checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} +checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --config_xml tools/checkstyle.xml --sha ${PREUPLOAD_COMMIT} diff --git a/tools/checkstyle.xml b/tools/checkstyle.xml new file mode 100644 index 0000000000..0f4163d780 --- /dev/null +++ b/tools/checkstyle.xml @@ -0,0 +1,20 @@ + + + + + +]> + + + &defaultModuleChecks; + &defaultCopyrightCheck; + + &defaultJavadocChecks; + &defaultTreewalkerChecks; + + + + + + diff --git a/tools/checkstyle_suppression.xml b/tools/checkstyle_suppression.xml new file mode 100644 index 0000000000..799e750605 --- /dev/null +++ b/tools/checkstyle_suppression.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/print_db.py b/tools/print_db.py similarity index 100% rename from print_db.py rename to tools/print_db.py