Skip to content

Commit 8144f85

Browse files
feat(proof-debt): add .trusted-base-ignore for scanner self-reference false positives (#29)
standards#223 merged 2026-05-27 adding path-fragment exemption support to check-trusted-base.sh. governance.yml here uses @main floating pin, so the new exemption mechanism is available on the next CI run. Exempts the 2 scanner-self-reference sites that PR #27 currently annotates inline with TRUSTED: comments: - src/scanners/banned_patterns.rs — detector pattern table mentions the strings it must detect. - tests/scanners.rs — test fixture includes the pattern under test. The inline TRUSTED: comments in #27 remain valid (script accepts either mechanism) but become redundant after this lands. Follow-up PR can remove them once #27 settles. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 758ff3e commit 8144f85

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.trusted-base-ignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
#
3+
# .trusted-base-ignore — path-fragment exemptions for check-trusted-base.sh.
4+
#
5+
# Format (matches .hypatia-ignore):
6+
# - Lines starting with `#` are comments.
7+
# - Each non-comment, non-blank line is a path-fragment substring that
8+
# exempts every escape-hatch marker whose file path contains the fragment.
9+
#
10+
# See: standards/docs/TRUSTED-BASE-REDUCTION-POLICY.adoc (standards#223 added
11+
# this exemption mechanism).
12+
13+
# ─── Scanner detector + test code ───────────────────────────────────────
14+
# The banned-pattern scanner has to mention the patterns it detects;
15+
# the test fixture has to include the pattern under test. Both are
16+
# scanner-self-reference false positives, not real unsafe code.
17+
src/scanners/banned_patterns.rs
18+
tests/scanners.rs

0 commit comments

Comments
 (0)