Enable bpfmt, clang_format, and ktfmt instead of ktlint. ktfmt is better adapted to Android style than ktlint, see external/ktfmt/README.md. In particular ktlint does not allow comments with argument names when calling java functions like: myFunction(/* arg1= */ 0, /* arg2= */ null) or like: myFunction(0 /* arg1 */, null /* arg2 */) Test: upload Change-Id: I0a134d8b0807f9b016ab7c416e4fad335baa310e
15 lines
535 B
INI
15 lines
535 B
INI
[Builtin Hooks]
|
|
bpfmt = true
|
|
clang_format = true
|
|
ktfmt = true
|
|
|
|
[Builtin Hooks Options]
|
|
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp,hpp
|
|
ktfmt = --kotlinlang-style
|
|
|
|
[Hook Scripts]
|
|
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
|
|
|
|
ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py --no-verify-format -f ${PREUPLOAD_FILES}
|
|
|
|
hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
|