• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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]
21# google_java_format only fixes indentation. This has Android specific checks like "m" prefix.
22checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
23                  --config_xml checkstyle.xml
24                  -fw android/app/src/com/android/bluetooth/
25                      android/app/lib/mapapi/com/android/bluetooth/mapapi/
26                      android/app/tests/src/com/android/bluetooth/
27                      framework/
28                      service/
29yapf_hook = ./system/tools/scripts/yapf_checker.py
30
31[Tool Paths]
32ktfmt = ${REPO_ROOT}/packages/modules/Bluetooth/tools/ktfmt
33