ArmoniK icon indicating copy to clipboard operation
ArmoniK copied to clipboard

Create Autoformat script for changed files only

Open dbrasseur-aneo opened this issue 3 years ago • 1 comments

Formatting is enforced at the pipeline level. We should be able to execute the formatting automatically before pushing to avoid having to commit again just to change format. Using just the command line can take upwards of 5 min to reformat, so determining the options in order to reformat only the changed files can be a huge speedup for the developper.

Objective : Create a script in Core executing jb cleanupcode only on the changed files (git diff)

dbrasseur-aneo avatar Aug 10 '22 08:08 dbrasseur-aneo

git grep --cached -l '' | xargs jb cleanupcode

aneojgurhem avatar Aug 10 '22 13:08 aneojgurhem