Skip to content

tools/codeformat.py could handle problems better (uncrustify errors) #5126

@microdev1

Description

@microdev1

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions