Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78730cd8 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Replace ktfmt.py hook by built-in hook in libs/systemui/

This CL replaces the ktfmt.py hook of this repository by the builtin
ktfmt hook. This will allow to delete our custom hook and provide
features like automatic fixup (see http://screen/5uXuuPgs7oL83c2).

Note that this also means that this CL is upgrading ktfmt from v0.43 to
v0.49, so it is expected to see some minor formatting diffs on existing
files after this CL is submitted.

Bug: 342153000
Test: N/A
Flag: NONE Repohook Update
Change-Id: I2a93ff9591558d5d8349acd757b62717021e4515
parent 8e2cf195
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
[Builtin Hooks]
bpfmt = true
ktfmt = true

[Builtin Hooks Options]
bpfmt = -d
ktfmt = --kotlinlang-style

[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}

ktfmt_hook = ${REPO_ROOT}/external/ktfmt/ktfmt.py --check -i ${REPO_ROOT}/frameworks/libs/systemui/ktfmt_includes.txt ${PREUPLOAD_FILES}

ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py --no-verify-format -f ${PREUPLOAD_FILES}

[Tool Paths]
ktfmt = ${REPO_ROOT}/prebuilts/build-tools/common/framework/ktfmt.jar

ktfmt_includes.txt

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
+