From 739b35b6853652bf5efcee52ecaa2efca703f54d Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Wed, 7 Oct 2026 08:24:18 +0100 Subject: [PATCH] fix(claude): replace mid-command wildcard check-*.sh rule with exact script rules Claude Code warns at startup that a * before the end of a Bash rule is a permission wildcard that also matches any options inserted there. List the four scripts/check-*.sh scripts explicitly. File written in JCS canonical form (ijson-jcs fix), per D306. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GpUzjdhWFi26k6s7AWxYcf --- .claude/settings.json | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index 4c00bf6..59da461 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -1,31 +1 @@ -{ - "permissions": { - "allow": [ - "Bash(git status:*)", - "Bash(git log:*)", - "Bash(git diff:*)", - "Bash(git show:*)", - "Bash(git branch:*)", - "Bash(git fetch:*)", - "Bash(reuse lint:*)", - "Bash(shellcheck:*)", - "Bash(asciidoctor:*)", - "Bash(bash scripts/check-*.sh:*)", - "Bash(just --list:*)", - "Bash(just doctor:*)", - "Bash(jq:*)" - ] - }, - "hooks": { - "SessionStart": [ - { - "hooks": [ - { - "type": "command", - "command": "bash .claude/hooks/session-start.sh" - } - ] - } - ] - } -} +{"hooks":{"SessionStart":[{"hooks":[{"command":"bash .claude/hooks/session-start.sh","type":"command"}]}]},"permissions":{"allow":["Bash(git status:*)","Bash(git log:*)","Bash(git diff:*)","Bash(git show:*)","Bash(git branch:*)","Bash(git fetch:*)","Bash(reuse lint:*)","Bash(shellcheck:*)","Bash(asciidoctor:*)","Bash(bash scripts/check-no-md-in-docs.sh:*)","Bash(bash scripts/check-no-project-identifiers.sh:*)","Bash(bash scripts/check-root-shape.sh:*)","Bash(bash scripts/check-state.sh:*)","Bash(just --list:*)","Bash(just doctor:*)","Bash(jq:*)"]}}