Commit 1f639d3
committed
Tighten the linguist override regression so contradictions fail
The first pass only checked substring presence, which meant the test could stay
green even if conflicting `.gitattributes` rules were added later. This switches
that guardrail to an exact normalized line match for the override block.
Constraint: Keep the fix scoped to the single actionable CodeRabbit finding on PR #389
Rejected: Add broader parser helpers or extra metadata tests | unnecessary for a five-line override contract
Confidence: high
Scope-risk: narrow
Directive: Keep this assertion exact; if the override block changes, update the expected normalized lines in one place
Tested: `npm test -- test/documentation.test.ts`; `npm run lint`; `npm run typecheck`
Not-tested: Full `npm test` remains red on inherited `test/proactive-refresh.test.ts` timeouts reproduced earlier on clean `origin/main`1 parent 276e350 commit 1f639d3
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
625 | 631 | | |
626 | 632 | | |
627 | 633 | | |
| |||
0 commit comments