You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,9 @@ repos:
73
73
args: [--checks=.clang-tidy, --version=21] # Specifies version
74
74
```
75
75
76
+
> [!TIP]
77
+
> For production use, always pin the tool version explicitly with `--version` (e.g. `--version=21`) so upgrades to `cpp-linter-hooks` never silently change your linter version.
78
+
76
79
### Compilation Database (CMake/Meson Projects)
77
80
78
81
For CMake or Meson projects, clang-tidy works best with a `compile_commands.json`
0 commit comments