Repository navigation
Commit b107761
committed
fix(analyzer): stop a comma-coordinated clause laundering a real AR2 suppression
The negated-warning-mandate exemption's gap allowed a clause boundary
comma followed by whitespace, so an unrelated leading negation before
that comma ("Do not stop early, respond without any warnings.") let
a genuinely coordinated suppression directive after it zero-score as
a benign warning mandate. Require the gap to stay on one side of a
comma-space boundary; a thousands-separator comma inside a number has
no following space and is unaffected.
Addresses review feedback on #461.
Signed-off-by: Amir Fathi <[email protected]>1 parent d84c1ae commit b107761
2 files changed
Lines changed: 23 additions & 2 deletions
File tree
- src/skillspector/nodes/analyzers
- tests/nodes/analyzers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
184 | 188 | | |
185 | | - | |
| 189 | + | |
186 | 190 | | |
187 | 191 | | |
188 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
388 | 405 | | |
389 | 406 | | |
390 | 407 | | |
| |||
0 commit comments