Skip to content

Cppcheck v2.4.1 fails but no output is shown while running pre-commit #31

@Takishima

Description

@Takishima

Running pre-commit with Cppcheck 2.4.1 on my machine does not provide any output despite the return code not being 0.

Actual:

$ pre-commit run --all-files cppcheck
cppcheck.................................................................Failed
- hook id: cppcheck
- exit code: 1

Expected:

cppcheck.................................................................Failed
- hook id: cppcheck
- exit code: 1

/tmp/temp/src/err.cpp:2:18: style: Unused variable: i [unusedVariable]
int main() { int i; return 10; }
                 ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions