We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 753f2bb commit f0a3e1cCopy full SHA for f0a3e1c
README.md
@@ -57,6 +57,21 @@ repos:
57
args: [--checks=.clang-tidy, --version=16] # Specifies version
58
```
59
60
+> [!IMPORTANT]
61
+> If you run `pre-commit` longer than expected, highly suggest to add `files` in `hooks` to limit the scope of the hook. For example below:
62
+
63
+```yaml
64
+- repo: https://github.com/cpp-linter/cpp-linter-hooks
65
+ rev: v0.6.1
66
+ hooks:
67
+ - id: clang-format
68
+ args: [--style=file, --version=16]
69
+ files: ^(src|include)/.*\.(cpp|cc|cxx|h|hpp)$ # limit the scope
70
+ - id: clang-tidy
71
+ args: [--checks=.clang-tidy, --version=16]
72
+ files: ^(src|include)/.*\.(cpp|cc|cxx|h|hpp)$
73
+```
74
75
## Output
76
77
### clang-format Example
0 commit comments