Commit cbae02a
committed
fix(test): reduce makeCase assert() complexity for Fallow Code Quality gate
The sequentialSteps branch pushed makeCase's assert() over the
cyclomatic/CRAP complexity thresholds (CI: Fallow Code Quality).
Extract the optional per-case checks (strictFinalOutput,
allowOnlyLocalCliHelpCommands, sequentialSteps) into a small
data-driven runOptionalCaseAssertions loop instead of sequential ifs.
Verified with `npx fallow audit --base origin/main` locally (clean)
and re-ran the six synthetic finalOutput dry-run checks against the
ios-system-ui-springboard-widget-add case; behavior unchanged.1 parent b8366d2 commit cbae02a
1 file changed
Lines changed: 21 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
491 | 497 | | |
492 | 498 | | |
493 | 499 | | |
| |||
516 | 522 | | |
517 | 523 | | |
518 | 524 | | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
528 | 540 | | |
529 | 541 | | |
530 | 542 | | |
| |||
0 commit comments