#question regarding linter

1 messages · Page 1 of 1 (latest)

spare salmon
#

why does it exit with exit code 1?
also logs few files. sorry im not really familiar with zig yet.

zig fmt --check src/*.zig src/**/*.zig
fluid hare
#

--check means print the incorrectly formatted files but don't fix them

#

and fails if there are any incorrectly formatted files

#

without --check it fixes the files

spare salmon
#

oh so i would have to format them? i thought it is just for detecting errors

fluid hare
#

not to be confused with --ast-check which enables more checks

spare salmon
#

ahh gotcha, thank you very much! <3

fluid hare
#

all errors already happen when you try to compile to a binary