Skip to content

Commit 3ba45d4

Browse files
authored
docs: use cpp-linter-hooks v1.8.1 in the examples (#92)
<!-- claude-projects-attribution: {"github_login":"shenxianpeng"} --> - The `.pre-commit-config.yaml` examples on Getting started, AI coding agents and Why cpp-linter pinned `rev: v1.7.0`; the current release is v1.8.1 (it fixes the parallel-install race and leaves clang-format unpinned). Blog posts keep the version they were written with. - zizmor: the org `.github/zizmor.yml` (same as cpp-linter: `cpp-linter/*` may use `@main`, here the shared stale workflow) and a 7-day Dependabot cooldown. zizmor now reports no findings. I also checked the other version claims on these pages (action `version: '21'` default, clang-tools 12 to 23, the static-binary install path); they match the current repos. Co-authored-by: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com>
1 parent 17aebe4 commit 3ba45d4

5 files changed

Lines changed: 13 additions & 3 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ updates:
99
directory: /
1010
schedule:
1111
interval: "weekly"
12+
cooldown:
13+
default-days: 7
1214
groups:
1315
actions:
1416
patterns:

‎.github/zizmor.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
rules:
2+
unpinned-uses:
3+
config:
4+
policies:
5+
actions/*: ref-pin
6+
github/*: ref-pin
7+
dependabot/*: ref-pin
8+
cpp-linter/*: any

‎docs/ai-coding-agents.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ checks on the staged files at each commit, on the agent's machine and on yours:
247247
```yaml title=".pre-commit-config.yaml"
248248
repos:
249249
- repo: https://github.com/cpp-linter/cpp-linter-hooks
250-
rev: v1.7.0
250+
rev: v1.8.1
251251
hooks:
252252
- id: clang-format
253253
args: [--style=file, --version=21]

‎docs/getting-started.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pip-install the clang-format and clang-tidy version you pin:
7171
```yaml title=".pre-commit-config.yaml"
7272
repos:
7373
- repo: https://github.com/cpp-linter/cpp-linter-hooks
74-
rev: v1.7.0
74+
rev: v1.8.1
7575
hooks:
7676
- id: clang-format
7777
args: [--style=file, --version=21]

‎docs/why-cpp-linter.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ annotations only; if most of yours come from forks, stay with the split workflow
164164

165165
```yaml title="After"
166166
- repo: https://github.com/cpp-linter/cpp-linter-hooks
167-
rev: v1.7.0
167+
rev: v1.8.1
168168
hooks:
169169
- id: clang-format
170170
args: [--style=file, --version=21]

0 commit comments

Comments
 (0)