blob: dbdc14449e3d2082663cba28bbe674f7cb532881 [file] [log] [blame]
Myles Watson1c4cdfe2016-11-29 10:58:00 -08001[Options]
2ignore_merged_commits = true
3
4[Builtin Hooks]
David Duarte4107df42023-03-19 21:04:09 +00005bpfmt = true
William Escandeb3aa7e92024-05-31 11:16:04 -07006clang_format = true
7commit_msg_changeid_field = true
8commit_msg_bug_field = true
9cpplint = true
10google_java_format = true
David Duarte689e5d32023-03-28 20:03:16 +000011ktfmt = true
William Escandeb3aa7e92024-05-31 11:16:04 -070012rustfmt = true
ThiƩbaud Weksteen810c25e2020-12-14 11:34:16 +010013
14[Builtin Hooks Options]
William Escandefd74d5f2023-05-18 15:01:26 -070015bpfmt = -s
William Escandeb3aa7e92024-05-31 11:16:04 -070016clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp,hpp
William Escandeb3aa7e92024-05-31 11:16:04 -070017ktfmt = --kotlinlang-style
18rustfmt = --config-path=rustfmt.toml
Myles Watson1c4cdfe2016-11-29 10:58:00 -080019
Jack Hea7faba32018-08-28 14:36:46 -070020[Hook Scripts]
William Escande51f58d92021-12-16 16:25:49 +010021aosp_first = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} ${PREUPLOAD_FILES}
William Escandeeade9002024-06-05 14:29:41 -070022# 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/
Chris Manton60bb45b2021-11-07 19:40:50 -080030yapf_hook = ./system/tools/scripts/yapf_checker.py
David Duarte689e5d32023-03-28 20:03:16 +000031
32[Tool Paths]
33ktfmt = ${REPO_ROOT}/packages/modules/Bluetooth/tools/ktfmt