diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 931d3ed..4646551 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -34,6 +34,7 @@ description: Find warnings/errors in C, C++, and Objective-C code types_or: [c, c++, c#, objective-c] language: python + require_serial: true - id: cpplint name: cpplint entry: cpplint-hook diff --git a/README.md b/README.md index 5f8b4b5..bba25ee 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,12 @@ This is a [pre-commit](https://pre-commit.com) hooks repo that integrates two C/C++ code formatters: > [clang-format](https://clang.llvm.org/docs/ClangFormatStyleOptions.html), -[uncrustify](http://uncrustify.sourceforge.net/), +[uncrustify](https://uncrustify.sourceforge.net/), and five C/C++ static code analyzers: > [clang-tidy](https://clang.llvm.org/extra/clang-tidy/), -[oclint](http://oclint.org/), -[cppcheck](http://cppcheck.sourceforge.net/), +[oclint](https://oclint.org/), +[cppcheck](https://cppcheck.sourceforge.net/), [cpplint](https://github.com/cpplint/cpplint), [include-what-you-use](https://github.com/include-what-you-use/include-what-you-use) @@ -238,7 +238,7 @@ These options are automatically added to enable all errors or are required. * oclint: `["-enable-global-analysis", "-enable-clang-static-analyzer", "-max-priority-3", "0"]` * uncrustify: `["-c", "defaults.cfg", "-q"]` (options added, and a defaults.cfg generated, if -c is missing) -* cppcheck: `["-q" , "--error-exitcode=1", "--enable=all", "--suppress=unmatchedSuppression", "--suppress=missingIncludeSystem", "--suppress=unusedFunction"]` (See https://github.com/pocc/pre-commit-hooks/pull/30) +* cppcheck: `["-q" , "--error-exitcode=1", "--enable=all", "--suppress=unmatchedSuppression", "--suppress=missingIncludeSystem"]` (See https://github.com/pocc/pre-commit-hooks/pull/30) * cpplint: `["--verbose=0"]` If you supply any of these options in `args:`, your options will override the above defaults (use `-=