Skip to content

C/C++ hooks: cppcheck and include-what-you-use #275

@edrex

Description

@edrex

I'm setting up CI for a C/C++ project at alex-courtis/way-displays#86. cppcheck and include-what-you-use are used, and I want to add pre-commit hooks for them.

There is an existing hooks repo that has these at https://github.com/pocc/pre-commit-hooks. The runner scripts are python 3. Does that disqualify them (python3 in nixpkgs has a 131MB closure), or is python3 already pulled in elsewhere?

Otherwise, what would be an ideal way, from the pre-commit-hooks.nix project perspective, to add these? I could just do local hooks for them, but I'd rather get it contributed up.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-hookA request for a new hook

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions