mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 10:59:39 +00:00
Root AGENTS.md states: 'New AGENTS.md: add sibling CLAUDE.md symlink.' src/infra/outbound/ had the guide but not the sibling symlink. Every other scoped AGENTS.md in the repo already has one; this closes the only real gap (the one remaining hit is an intentional test fixture in extensions/oc-path/src/oc-path/tests/fixtures/real/). Also adds CLAUDE.md to .semgrepignore so opengrep's PR-diff scan stops trying to open the symlink as a regular file. Scanning the symlink is redundant with scanning the underlying AGENTS.md.
104 lines
3.3 KiB
Text
104 lines
3.3 KiB
Text
# .semgrepignore — single source of truth for paths excluded from
|
|
# opengrep / semgrep scans run against this repo.
|
|
#
|
|
# Syntax: gitignore-style globs (https://git-scm.com/docs/gitignore).
|
|
# Consumed automatically by `opengrep scan` and `semgrep scan`. The compiled
|
|
# detector rulepacks under security/opengrep/ and the GitHub Actions workflows
|
|
# under .github/workflows/opengrep-*.yml all rely on this file rather than
|
|
# duplicating exclude lists in 50+ places.
|
|
#
|
|
# When adding a new test naming convention, fixture directory, or QA-tooling
|
|
# extension to the codebase, add its glob here so the security rulepacks
|
|
# stop firing on it. Real product code should never match anything in this
|
|
# file.
|
|
|
|
# ----------------------------------------------------------------------------
|
|
# Standard test file suffixes
|
|
# ----------------------------------------------------------------------------
|
|
*.test.*
|
|
*.spec.*
|
|
|
|
# ----------------------------------------------------------------------------
|
|
# Fixture & mock file suffixes (cover both .foo and -foo styles used in repo)
|
|
# ----------------------------------------------------------------------------
|
|
*.fixture.*
|
|
*-fixture.*
|
|
*-fixtures.*
|
|
*.mock.*
|
|
*-mock.*
|
|
*-mocks.*
|
|
|
|
# ----------------------------------------------------------------------------
|
|
# Test helper / harness / support / shared / utils naming conventions
|
|
# ----------------------------------------------------------------------------
|
|
*.test-helper.*
|
|
*.test-helpers.*
|
|
*-test-helpers.*
|
|
*.test-harness.*
|
|
*-test-harness.*
|
|
*.test-support.*
|
|
*-test-support.*
|
|
*.test-shared.*
|
|
*-test-shared.*
|
|
*.test-mocks.*
|
|
*-test-mocks.*
|
|
*.test-utils.*
|
|
*-test-utils.*
|
|
*.test-fixtures.*
|
|
*-test-fixtures.*
|
|
*.e2e-test-helpers.*
|
|
|
|
# Bare top-of-dir test helper files (e.g. extensions/foo/src/test-helpers.ts)
|
|
test-helper.*
|
|
test-helpers.*
|
|
test-harness.*
|
|
test-support.*
|
|
test-shared.*
|
|
test-utils.*
|
|
test-mocks.*
|
|
test-fixtures.*
|
|
test-fetch.*
|
|
test-manager-helpers.*
|
|
|
|
# ----------------------------------------------------------------------------
|
|
# Test / mock / fixture directories anywhere in the tree
|
|
# ----------------------------------------------------------------------------
|
|
__tests__/
|
|
__mocks__/
|
|
test/
|
|
tests/
|
|
test-fixtures/
|
|
test-fixture/
|
|
test-helpers/
|
|
test-utils/
|
|
test-support/
|
|
test-mocks/
|
|
test-harness/
|
|
fixtures/
|
|
mocks/
|
|
|
|
# ----------------------------------------------------------------------------
|
|
# QA tooling — entire QA-only directories and extensions, not product code
|
|
# ----------------------------------------------------------------------------
|
|
qa/
|
|
qa-lab/
|
|
extensions/qa-*/
|
|
|
|
# ----------------------------------------------------------------------------
|
|
# Top-level scripts that drive tests rather than ship product behavior
|
|
# ----------------------------------------------------------------------------
|
|
scripts/test-*
|
|
scripts/run-vitest*
|
|
scripts/run-tests*
|
|
scripts/lib/test-*
|
|
scripts/lib/extension-test-*
|
|
scripts/lib/vitest-*
|
|
|
|
# ----------------------------------------------------------------------------
|
|
# Sibling symlinks for scoped guides
|
|
# ----------------------------------------------------------------------------
|
|
# Every `AGENTS.md` has a sibling `CLAUDE.md` symlink pointing at it (see
|
|
# root AGENTS.md: "New AGENTS.md: add sibling CLAUDE.md symlink"). Scanning
|
|
# the symlinks is redundant with scanning the underlying AGENTS.md and
|
|
# breaks opengrep's PR-diff scan when a new CLAUDE.md symlink is added.
|
|
CLAUDE.md
|