summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Felka Chang <felkachang@google.com> 2019-03-21 04:56:10 +0800
committer Felka Chang <felkachang@google.com> 2019-03-21 04:56:10 +0800
commit62d477641e1d60c2eb424a0189598e34e81befb8 (patch)
treee614c6b75ea752986ed61035558968faa0c0cc3b
parentfac6af96094563b6da49e1a64ef925ba9e7c3135 (diff)
Add PREUPLOAD.cfg to run the static analyze
To add PREUPLOAD.cfg to notify the developers to run the script to reduce the time for code review. Fixes: 129001841 Test: atest DocumentsUIGoogleTests Test: Upload the patch will have the notification to run script check Change-Id: Id65a6856a3d3424df9322ea9d70dc4e992e6f0c1
-rw-r--r--PREUPLOAD.cfg16
1 files changed, 16 insertions, 0 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
new file mode 100644
index 000000000..e731138ff
--- /dev/null
+++ b/PREUPLOAD.cfg
@@ -0,0 +1,16 @@
+[Hook Scripts]
+checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
+
+api_lint_hook = ${REPO_ROOT}/frameworks/base/tools/apilint/apilint_sha.sh ${PREUPLOAD_COMMIT}
+
+strings_lint_hook = ${REPO_ROOT}/frameworks/base/tools/stringslint/stringslint_sha.sh ${PREUPLOAD_COMMIT}
+
+hidden_api_txt_checksorted_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
+
+hidden_api_txt_exclude_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/exclude.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
+
+ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py -f ${PREUPLOAD_FILES}
+
+owners_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "OWNERS$"
+
+shell_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^packages/Shell/"