Loading PREUPLOAD.cfg +5 −0 Original line number Diff line number Diff line Loading @@ -5,11 +5,13 @@ ignore_merged_commits = 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 [Hook Scripts] checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} Loading @@ -20,3 +22,6 @@ checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPL 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 tools/ktfmt 0 → 100755 +5 −0 Original line number Diff line number Diff line #!/usr/bin/env bash ROOT=$(dirname "$(realpath "$0")")/../../../../ "$ROOT/prebuilts/jdk/jdk17/linux-x86/bin/java" -jar "$ROOT/prebuilts/build-tools/common/framework/ktfmt.jar" "$@" No newline at end of file Loading
PREUPLOAD.cfg +5 −0 Original line number Diff line number Diff line Loading @@ -5,11 +5,13 @@ ignore_merged_commits = 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 [Hook Scripts] checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} Loading @@ -20,3 +22,6 @@ checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPL 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
tools/ktfmt 0 → 100755 +5 −0 Original line number Diff line number Diff line #!/usr/bin/env bash ROOT=$(dirname "$(realpath "$0")")/../../../../ "$ROOT/prebuilts/jdk/jdk17/linux-x86/bin/java" -jar "$ROOT/prebuilts/build-tools/common/framework/ktfmt.jar" "$@" No newline at end of file