Skip to content

Commit 7572ff2

Browse files
committed
chore(scaffolding): add missing path-guard allowlist + xport.schema.json (sync from template@cfba1e6)
1 parent 5153ddd commit 7572ff2

2 files changed

Lines changed: 496 additions & 0 deletions

File tree

.github/paths-allowlist.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Path-hygiene gate allowlist.
2+
# Mantra: 1 path, 1 reference.
3+
#
4+
# Each entry exempts a specific finding from `scripts/check-paths.mts`.
5+
# Entries MUST carry a `reason` so the list stays audit-able and
6+
# entries can be removed when the underlying code changes.
7+
#
8+
# Schema (all top-level keys optional except `reason`):
9+
#
10+
# - rule: Rule letter (A, B, C, D, F, G). Omit to match any rule.
11+
# file: Substring match against the relative file path.
12+
# pattern: Substring match against the offending snippet.
13+
# line: Line number; matches if within ±2 of the finding.
14+
# reason: Why this site is genuinely exempt. Required.
15+
#
16+
# Prefer narrow entries (rule + file + line + pattern) over blanket
17+
# `file:` entries that exempt the whole file. Genuine exemptions are
18+
# rare — most "false positives" should be reported as gate bugs.
19+
#
20+
# Example:
21+
#
22+
# - rule: A
23+
# file: packages/foo/scripts/legacy-build.mts
24+
# line: 42
25+
# pattern: "path.join(testDir, 'out', 'Final')"
26+
# reason: |
27+
# legacy-build.mts is scheduled for removal in v2.0; refactoring
28+
# its path construction now would conflict with the rewrite.
29+
30+
# (No allowlist entries yet — socket-btm is meant to be clean.)

0 commit comments

Comments
 (0)