-
Notifications
You must be signed in to change notification settings - Fork 5
/
PREUPLOAD.cfg
30 lines (26 loc) · 1 KB
/
PREUPLOAD.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[Options]
ignore_merged_commits = true
[Builtin Hooks]
commit_msg_bug_field = true
google_java_format = true
clang_format = true
rustfmt = true
bpfmt = true
ktfmt = true
[Builtin Hooks Options]
rustfmt = --config-path=rustfmt.toml
# Only turn on clang-format check for C and C++ headers and sources
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp,hpp
ktfmt = --kotlinlang-style
bpfmt = -s
[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
-fw android/app/src/com/android/bluetooth/
android/app/lib/mapapi/com/android/bluetooth/mapapi/
android/app/tests/src/com/android/bluetooth/
framework/
service/
aosp_first = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} ${PREUPLOAD_FILES}
yapf_hook = ./system/tools/scripts/yapf_checker.py
[Tool Paths]
ktfmt = ${REPO_ROOT}/packages/modules/Bluetooth/tools/ktfmt