summaryrefslogtreecommitdiff
path: root/PREUPLOAD.cfg
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2019-07-24 15:48:44 +0900
committerRemi NGUYEN VAN <reminv@google.com>2019-07-24 15:54:24 +0900
commitba47bae749f398bc85a17acee4359073a90e7f5c (patch)
tree5b4c9dae483143210ed581be35d543df78d7421b /PREUPLOAD.cfg
parente691553aa6efe0ae226f198918d0887f524d917d (diff)
Add ktlint to preupload hooks
The kotlin linter is particularly useful for tests written in Kotlin in frameworks/base. This is already merged in internal master. Test: Tried uploading change with/without kotlin style problems. Merged-In: Ie8659765b674ac7b2d82ed3d343f387195c07d83 Change-Id: I420366c49d071e022b8988c3d6293dbc8e9a283a
Diffstat (limited to 'PREUPLOAD.cfg')
-rw-r--r--PREUPLOAD.cfg2
1 files changed, 2 insertions, 0 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 543f0edbf835..e731138ff40d 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -9,6 +9,8 @@ hidden_api_txt_checksorted_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/c
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/"