PREUPLOAD.cfg
0 → 100644
+12
−0
ktfmt_includes.txt
0 → 100644
+80
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Add PREUPLOAD.cfg for formating Android.bp files and Kotlin source code. Also, generate ktfmt inclusion file for excluding existing files under frameworks/libs/systemui/* that do not match the current format style. This CL updates the ktfmt_includes.txt file used by System UI libs. Starting from this CL, all new Kotlin files in frameworks/libs/systemui/ will be checked using ktfmt. This file was generated using the following commands: $ cd $ANDROID_BUILD_TOP/frameworks/libs/systemui $ $ANDROID_BUILD_TOP/external/ktfmt/generate_includes_file.py --output=ktfmt_includes.txt . $ # Removing leading "." from files listed in ktfmt_includes.txt $ # Replace "-./" with "-", replace "+." with "+" $ sed -i 's/-\.\//-/g;s/+./+/g' ktfmt_includes.txt Flag: NONE Bug: 235461679 Test: Modify one of the Kotlin files not listed in ktfmt_includes.txt to give it incorrect styling. Add it to a git commit. Then, run pre-upload hooks: $ANDROID_BUILD_TOP/tools/repohooks/pre-upload.py Change-Id: Icf6c75706ba20f2c431fc8f3fa05a4d0472b4836