summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2019-06-07 18:46:27 +0900
committerRemi NGUYEN VAN <reminv@google.com>2019-06-07 18:46:27 +0900
commit6ba4828f2a6a2682fd8daef0301f3d655b62179b (patch)
tree985f1b313b0689eb0823df68a93637f928b1119c
parent6ae25aa680a3d9d198f98c3a1ba7862037af7c4c (diff)
Add preupload hooks config for NetworkStack
Adds Java and Kotlin linters in preupload. Test: modified Java/Kotlin, tried upload, saw errors Change-Id: I802209075df174768b8b692d241643808ec286e6
-rw-r--r--PREUPLOAD.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
new file mode 100644
index 0000000..151be7e
--- /dev/null
+++ b/PREUPLOAD.cfg
@@ -0,0 +1,3 @@
+[Hook Scripts]
+checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
+ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py -f ${PREUPLOAD_FILES}