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

Currently clang-tidy hook is running in serial, which can be slow if multiple large files are modified. Clang-tidy is trivially parallelize-able per file, so why don't we take advantage of...

I noticed this issue with `ClangTidyCmd` but it it is an issue for all the other similar concrete classes (`CppcheckCmd`, `CpplintCmd`, `IncludeWhatYouUseCmd`, etc.). I am working on a cross-platform C++...

Fix for https://github.com/pocc/pre-commit-hooks/issues/46 In some use cases, the `args` param given to the Command constructor was an (purposely) stripped version of sys.argv. Command.get_added_files() was reading directly from sys.argv, circumventing this...

Hi! I am trying to configure the pre-commit hook with oclint. What I am noticing is that while executing the commit the program is executed but... - the program seems...

With the default test repo (`pre-commit-hooks/tests/test_repo`) and the following config... ```yaml fail_fast: false repos: - repo: https://github.com/pocc/pre-commit-hooks rev: v1.3.5 hooks: - id: clang-format args: [--version=10.0.0, --style=Google] ``` ... the following...

This is something that clang-format-diff and clang-tidy-diff do to varying degrees of success. Via https://www.reddit.com/r/cpp/comments/pnli5r/cc_precommit_hooks_for_static_analyzers_and/

Maybe I'm just too new to integrating pre-commit into my project and use it incorrectly, but it seems that the arguments for include-what-you-use are passed incorrectly. The manpage reads `USAGE:...

On my version of oclint, I don't see 'Errors', but 'FilesWithViolations=1'. Otherwise no output is sent to the console. Should fix #45

Currently, cpplint exits immediately after finding an error in a single file. I have changed it so that it completes checking all the files and showing all of the errors...

my pre-commit file look like: ```shell fail_fast: false repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 # Use the ref you want to point at hooks: - id: trailing-whitespace - id: check-added-large-files...