chore: added code formating target#8
Conversation
Description =========== Since 'make test' is frequently used during development, adding the codebase formatting target as a prerequisite to it, will help maintain consistency in the codebase more easily. Usage ===== ``` make test ``` If you only want to format the codebase without running the tests, run: ``` make format ```
There was a problem hiding this comment.
Good idea however can we just --check instead of applying? This way executing tests won't potentially change source code (which is a very unexpected thing to do for tests). Also I'm about to add basic CI jobs where we want to re-use the Makefile targets, and with --check it'll be directly reusable since it returns non-zero exit code if it finds unformatted code.
Co-authored-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
@xermicus |
Signed-off-by: xermicus <bigcyrill@hotmail.com> Co-authored-by: xermicus <bigcyrill@hotmail.com> Reviewed-on: https://forgejo.lab/neo/revive/pulls/8
Description
Since 'make test' is frequently used during development, adding the codebase formatting target as a prerequisite to it, will help maintain consistency in the codebase more easily.
Usage
During testing, formatting will automatically be applied
make testOr
If you only want to format the codebase without running the tests, you should just run: