Siarhei Vishniakou | a3117ca | 2019-12-09 16:08:46 -0800 | [diff] [blame] | 1 | [Builtin Hooks] |
| 2 | clang_format = true |
Songchun Fan | d4574b5 | 2021-03-02 20:05:57 +0000 | [diff] [blame] | 3 | bpfmt = true |
Jordan Demeulenaere | 846b798 | 2024-05-29 15:22:56 +0200 | [diff] [blame] | 4 | ktfmt = true |
Siarhei Vishniakou | a3117ca | 2019-12-09 16:08:46 -0800 | [diff] [blame] | 5 | |
| 6 | [Builtin Hooks Options] |
| 7 | # Only turn on clang-format check for the following subfolders. |
| 8 | clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp |
Siarhei Vishniakou | ed5d30c | 2025-02-27 13:55:09 -0800 | [diff] [blame] | 9 | apct-tests/ |
Siarhei Vishniakou | a3117ca | 2019-12-09 16:08:46 -0800 | [diff] [blame] | 10 | cmds/hid/ |
| 11 | cmds/input/ |
Chris Ye | 3c5b809 | 2020-08-07 09:15:19 -0700 | [diff] [blame] | 12 | cmds/uinput/ |
Siarhei Vishniakou | cd2fe53 | 2020-01-03 10:59:17 -0800 | [diff] [blame] | 13 | core/jni/ |
Siarhei Vishniakou | d11f38f | 2021-01-12 20:45:29 -1000 | [diff] [blame] | 14 | libs/hwui/ |
Siarhei Vishniakou | a3117ca | 2019-12-09 16:08:46 -0800 | [diff] [blame] | 15 | libs/input/ |
Vishnu Nair | ce1a648 | 2020-10-22 17:41:30 -0700 | [diff] [blame] | 16 | native/ |
Siarhei Vishniakou | 44d50fe | 2020-01-27 11:31:29 -0600 | [diff] [blame] | 17 | services/core/jni/ |
Alex Buynytskyy | 1d89216 | 2020-04-03 23:00:19 -0700 | [diff] [blame] | 18 | services/incremental/ |
Vishnu Nair | 57928e6 | 2020-09-16 19:01:04 -0700 | [diff] [blame] | 19 | tests/ |
Siarhei Vishniakou | 2da1776 | 2020-09-08 22:43:35 -0500 | [diff] [blame] | 20 | tools/ |
Songchun Fan | d4574b5 | 2021-03-02 20:05:57 +0000 | [diff] [blame] | 21 | bpfmt = -d |
Siarhei Vishniakou | 75fa35e | 2025-03-14 13:33:29 -0700 | [diff] [blame] | 22 | ktfmt = --kotlinlang-style --include-dirs=services/permission,packages/SystemUI,libs/WindowManager/Shell/src/com/android/wm/shell/freeform,libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode,libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode,apct-tests,tests/Input |
Jeff Sharkey | 6e2c566 | 2022-08-03 13:50:23 -0600 | [diff] [blame] | 23 | |
Aurimas Liutikas | 5c19b54 | 2016-10-11 14:01:36 -0700 | [diff] [blame] | 24 | [Hook Scripts] |
Aurimas Liutikas | d5c5ac6 | 2020-07-10 16:28:19 +0000 | [diff] [blame] | 25 | checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} |
| 26 | |
Paul Duffin | 738f919 | 2021-04-14 13:36:53 +0100 | [diff] [blame] | 27 | hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT} |
Paul Duffin | 00537c1 | 2018-11-28 12:22:14 +0000 | [diff] [blame] | 28 | |
| 29 | hidden_api_txt_exclude_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/exclude.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT} |
Jeff Sharkey | 0a9c731 | 2018-08-23 22:01:53 -0600 | [diff] [blame] | 30 | |
Jordan Demeulenaere | 8fb6d0e | 2022-10-06 14:55:44 +0200 | [diff] [blame] | 31 | ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py --no-verify-format -f ${PREUPLOAD_FILES} |
Anushree Ganjam | da9c624 | 2023-10-19 14:33:35 -0700 | [diff] [blame] | 32 | |
Jordan Demeulenaere | 846b798 | 2024-05-29 15:22:56 +0200 | [diff] [blame] | 33 | [Tool Paths] |
Jordan Demeulenaere | 3ccfedb | 2024-06-12 20:14:38 +0200 | [diff] [blame] | 34 | ktfmt = ${REPO_ROOT}/external/ktfmt/ktfmt.sh |