pre-commit-hooks icon indicating copy to clipboard operation
pre-commit-hooks copied to clipboard

C/C++ hooks to integrate with pre-commit

Results 19 pre-commit-hooks issues
Sort by recently updated
recently updated
newest added

Hi, I am trying to use the clang-tidy hook. my .pre-commit-config.yaml looks something like: `repos: - repo: https://github.com/pocc/pre-commit-hooks rev: master hooks: - id: clang-tidy args: ['-p some/folder']` Notice the args....

https://github.com/pocc/pre-commit-hooks/blob/336fdd7c3cab698ead0b1c95157b9e74d3906b62/hooks/clang_tidy.py#L22 The comment above seems misleading; passing --fix-errors seems to actually trigger the error if one is found..

I have seen in [the hook's code](https://github.com/pocc/pre-commit-hooks/blob/master/hooks/uncrustify.py#L15) that `uncrustify` is hardcoded as a command. It would be really useful to specify some custom path for the executable, e.g. `/home/skelly37/.local/bin/uncrustify`, so...

> For clang-format, with a `.clang-format` file in the base of your repo: > > ```yaml > - repo: https://github.com/pocc/pre-commit-hooks > rev: v1.3.5 > hooks: > - id: clang-format >...

include-what-you-use does not fail even if it is supposed to fail. I needed to modify my pre-commit yaml file to include the line `entry`: ``` repos: - repo: https://github.com/pocc/pre-commit-hooks rev:...

Hey! I read in your documentation that installing llvm with brew on Mac should also install clang-format and clang-tidy. This does not work on my machine however. Both clang-format and...

Hi, I would like to run all of the hooks only on specific directories. To achieve this I'm using file exclude pattern. The exclude works for the clang-format but not...

Bumps [black](https://github.com/psf/black) from 19.10b0 to 24.3.0. Release notes Sourced from black's releases. 24.3.0 Highlights This release is a milestone: it fixes Black's first CVE security vulnerability. If you run Black...

dependencies

Pre-commit does not find stagged vala file. As I saw you comment here, it seems that this hook does not work with vala https://github.com/pocc/pre-commit-hooks/blob/336fdd7c3cab698ead0b1c95157b9e74d3906b62/.pre-commit-hooks.yaml#L28 I just want to get a...