neovim icon indicating copy to clipboard operation
neovim copied to clipboard

build: add formatting targets for c and lua files

Open dundargoc opened this issue 3 years ago • 2 comments

build: add formatting targets for c and lua files

The targets will only format files that have been changed in current branch compared to the master branch. This includes unstaged, staged and committed files.

Add following make and cmake targets: formatc - format changed c files formatlua - format changed lua files format - run formatc and formatlua

Remove scripts/uncrustify.sh as this deprecates it.

dundargoc avatar Jul 24 '22 16:07 dundargoc

Opting to only format changed file regardless of file type as it's faster.

dundargoc avatar Jul 25 '22 12:07 dundargoc

lgtm. Is there a place in CONTRIBUTING.d that can be updated to mention this?

Opting to only format changed file regardless of file type as it's faster.

Also less intruisive/risky/surprising.

justinmk avatar Jul 29 '22 02:07 justinmk

oops I didn't realize this is in draft. Seems good enough to merge?

justinmk avatar Aug 01 '22 13:08 justinmk