With uncrustify=0.69 (default with Ubuntu 20.04):
- when
python3 tools/codeformat.py -cv is run, a bunch of errors can be seen
- when uncrustify is run with pre-commit, the errors go undetected and the formatting hook passes.
My theory is that pre-commit expects the hook to return a certain error code on failure but codeformat.py isn't doing that.
With
uncrustify=0.69(default withUbuntu 20.04):python3 tools/codeformat.py -cvis run, a bunch of errors can be seenMy theory is that pre-commit expects the hook to return a certain error code on failure but
codeformat.pyisn't doing that.