From e89583a9b14db0aa3a73a216cf70aceeef7478c7 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Tue, 31 Mar 2026 04:21:55 +0300 Subject: [PATCH] docs: add tip for pinning tool version in README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 2f94501..42ecb26 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,9 @@ repos: args: [--checks=.clang-tidy, --version=21] # Specifies version ``` +> [!TIP] +> 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. + ## Output ### clang-format Output