Commit 182b7b1
fix(governance)!: banned_language ban is total — no exceptions
Org policy 2026-05-18: the banned-language ban (incl. Python) is now
absolute, with no SaltStack-style carve-outs.
- ScannerSuppression.suppressed?/4 gains a hard short-circuit clause:
cicd_rules/banned_language_file is NEVER suppressed — not by
.hypatia-ignore, built-in default exemptions, universal excludes, or
training-corpus paths. (Added the canonical bodiless default head so
the guard clause coexists with the optional opts arg.)
- cicd_rules :python_detected loses its `exception: "SaltStack"` field.
- 4 new tests pin the invariant (unsuppressible via every vector;
unrelated rules on the same path remain suppressible).
Compiles clean; 24/24 scanner_suppression tests pass.
Companion to #279 (which removed hypatia's own Python + revoked its
exemption records). Note: the #272 `unwrap_without_check` false
positive is NOT a rule defect — the source regex /\.unwrap\(\)/ does
not match `unwrap_or` (verified); it was a stale compiled escript,
already addressed by #278's escript rebuild. No rule change there.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 65f0912 commit 182b7b1
3 files changed
Lines changed: 63 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
81 | 90 | | |
82 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
83 | 96 | | |
84 | 97 | | |
85 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
71 | 116 | | |
72 | 117 | | |
73 | 118 | | |
| |||
0 commit comments