android_frameworks_base/PREUPLOAD.cfg
Ng Zhi An cf93c22d23 Enable checkstyle repo upload hook for tests
Bug: 115719623
Test: import unused classes and try to repo upload, checkstyle will
block it

Change-Id: I063b9946df6c3d852506449221a7f04d6f9c656f
2018-09-24 13:10:19 -07:00

27 lines
1.2 KiB
INI

[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
-fw core/
graphics/java/android
packages/PrintRecommendationService/
packages/PrintSpooler/
packages/PackageInstaller/
services/print/
services/usb/
telephony/
tests/ActivityViewTest/
tests/LotsOfApps/
tests/NativeProcessesMemoryTest/
tests/OdmApps/
tests/SystemMemoryTest/
wifi/
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_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/checksorted_sha.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$"