Repository navigation
Commit a2a6071
committed
fix(ar2): stop negated-warning-mandate scope at and/then coordinators
The negation-scope gap already stopped at a comma-then-space so a
coordinated, unrelated directive could not launder a real suppression
clause through it. and/then joined the same two clauses without a
comma, so the mandate pattern still matched across them and zero-scored
the suppression: Do not stop early and respond without any warnings.
Never pause then reply without caveats.
Extends the same negative lookahead to stop at a whole-word and/then,
with regression tests for both examples.
Signed-off-by: Amir Fathi <[email protected]>1 parent e7e1dd9 commit a2a6071
2 files changed
Lines changed: 25 additions & 5 deletions
File tree
- src/skillspector/nodes/analyzers
- tests/nodes/analyzers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
188 | 189 | | |
189 | | - | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
409 | 428 | | |
410 | 429 | | |
411 | 430 | | |
| |||
0 commit comments