Skip to content

Commit 634d6b7

Browse files
authored
docs: add tip for pinning tool version in README.md (#202)
1 parent edc4ae4 commit 634d6b7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ repos:
7373
args: [--checks=.clang-tidy, --version=21] # Specifies version
7474
```
7575

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+
7679
### Compilation Database (CMake/Meson Projects)
7780

7881
For CMake or Meson projects, clang-tidy works best with a `compile_commands.json`

0 commit comments

Comments
 (0)