7 Commits

Author SHA1 Message Date
Jordan Demeulenaere
3b7282e08c Use ktfmt.sh wrapper for ktfmt hook
This CL makes the ktfmt hook use the bash wrapper introduced in
ag/I8746885396c7837a2a6b2a42dca780da290ed582 instead of directly
executing the ktfmt.jar, now that gLinux is not able to execute
JAR files directly anymore.

Bug: 342153000
Test: Manual, verified that the ktfmt hook was working
Flag: EXEMPT repo hook
Change-Id: Ib3baec68951bb185e79638b5b3003f8403816b19
2024-06-13 11:20:06 +02:00
Jordan Demeulenaere
8e9da3c79c Replace ktfmt.py hook by built-in hook in Launcher3/
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: I66ae0443e6d5c45c771791b4182e610a20675815
2024-05-29 16:36:46 +02:00
Anushree Ganjam
f743e8a75c Add arguments for flag_check.py.
Bug: 306262821
Test: Manual
Flag: NA
Change-Id: I0698fa1a21b116831414e05bda11de6eda4b8d00
2023-10-20 10:09:12 -07:00
hyunyoungs
2a165ae76d Add flag_check.py to the preupload
Bug: 273661677
Test: repo upload .
Flag: not needed, python script for repo hook
Change-Id: Ieb48c7ab59b2dffbbf47e3ee0a45698e9adfda9c
2023-10-12 17:38:33 +00:00
Thales Lima
7a3c1e10a7 Check kotlin format before uploading
This uses ktfmt on the PREUPLOAD hook to check file formatting.

Bug: 264851618
Test: manual
Change-Id: I8bdeabd9c1ed571a464707e6912419ad3190a169
2023-01-09 17:45:42 +00:00
Sunny Goyal
cf7a48b1de Disabling some repo checks for rebolectric files
Change-Id: I025db602f14f7696e7f3165357afbec0cfa8e713
2020-01-09 09:18:41 -08:00
Vinit Nayak
0be5adfac9 Add PREUPLOAD.cfg file to enable repo checkstyle hooks
fixes: 65162750
Change-Id: I42dd2699d1966cf509f475a34e623ce449e87213
2019-08-06 01:31:17 +00:00