1[Options]
2ignore_merged_commits = true
3
4[Builtin Hooks]
5bpfmt = true
6clang_format = true
7commit_msg_changeid_field = true
8commit_msg_bug_field = true
9cpplint = true
10google_java_format = true
11ktfmt = true
12rustfmt = true
13
14[Builtin Hooks Options]
15bpfmt = -s
16clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp,hpp
17ktfmt = --kotlinlang-style
18rustfmt = --config-path=rustfmt.toml
19
20[Hook Scripts]
21aosp_first = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} ${PREUPLOAD_FILES}
22# google_java_format only fixes indentation. This has Android specific checks like "m" prefix.
23checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
24                  --config_xml checkstyle.xml
25                  -fw android/app/src/com/android/bluetooth/
26                      android/app/lib/mapapi/com/android/bluetooth/mapapi/
27                      android/app/tests/src/com/android/bluetooth/
28                      framework/
29                      service/
30yapf_hook = ./system/tools/scripts/yapf_checker.py
31
32[Tool Paths]
33ktfmt = ${REPO_ROOT}/packages/modules/Bluetooth/tools/ktfmt
34