ci: refuse CLAUDE.md in any letter case and keep .apm-local out of the build #333
No files matched your search
@@ -87,7 +87,7 @@ jobs:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
|
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
|
||||||
- name: ci
|
- name: ci
|
||||||
version: 0.2.37
|
version: 0.2.38
|
||||||
subpath: ""
|
subpath: ""
|
||||||
dockerfile: images/ci/Dockerfile
|
dockerfile: images/ci/Dockerfile
|
||||||
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
|
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
|
||||||
|
|||||||
@@ -130,10 +130,11 @@ repos:
|
|||||||
# the failure is silent: the agent gets no guidance and no error.
|
# the failure is silent: the agent gets no guidance and no error.
|
||||||
- id: refuse-claude-md
|
- id: refuse-claude-md
|
||||||
name: Refuse CLAUDE.md files
|
name: Refuse CLAUDE.md files
|
||||||
description: refuse CLAUDE.md, CLAUDE.local.md and .claude/CLAUDE.md at any depth
|
description: refuse CLAUDE.md, CLAUDE.local.md and .claude/CLAUDE.md at any depth, in any case
|
||||||
entry: a CLAUDE.md file makes Claude Code ignore every AGENTS.md; delete it
|
entry: a CLAUDE.md file makes Claude Code ignore every AGENTS.md; delete it
|
||||||
language: fail
|
language: fail
|
||||||
files: (^|/)(\.claude/)?CLAUDE(\.local)?\.md$
|
# Any letter case: a case-insensitive file system serves claude.md as CLAUDE.md.
|
||||||
|
files: (?i)(^|/)(\.claude/)?claude(\.local)?\.md$
|
||||||
stages: ['pre-commit']
|
stages: ['pre-commit']
|
||||||
|
|
||||||
- repo: meta
|
- repo: meta
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ build_ignore:
|
|||||||
- apm.yml
|
- apm.yml
|
||||||
- apm.lock.yaml
|
- apm.lock.yaml
|
||||||
- apm_modules
|
- apm_modules
|
||||||
|
- .apm-local
|
||||||
- .claude
|
- .claude
|
||||||
- .gitea
|
- .gitea
|
||||||
- .gitignore
|
- .gitignore
|
||||||
|
|||||||
Reference in new issue
Block a user