android_packages_modules_Co.../PREUPLOAD.cfg
Patrick Rohr 2f870dbc33 Add rustfmt to p/m/C
Test: try to upload .rs
Change-Id: I8ccea161da10db8505e1f0aa5fb22f6c6952373e
2025-03-28 10:06:13 -07:00

15 lines
562 B
INI

[Builtin Hooks]
bpfmt = true
clang_format = true
rustfmt = true
[Builtin Hooks Options]
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp,hpp
rustfmt = --config-path=rustfmt.toml
[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py --disabled-rules comment-wrapping -f ${PREUPLOAD_FILES}
hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}