Skip to content

fix: fix CLI behavior issues (Phase 3 audit remediation)#22

Merged
geoffmcc merged 1 commit into
mainfrom
fix/phase3-cli-behavior-issues
Jul 19, 2026
Merged

fix: fix CLI behavior issues (Phase 3 audit remediation)#22
geoffmcc merged 1 commit into
mainfrom
fix/phase3-cli-behavior-issues

Conversation

@geoffmcc

Copy link
Copy Markdown
Owner

Summary

Fixes CLI behavior issues: exit code semantics, flag inversion, and config fallback documentation.

Changes

  • src/alscan/cli.py:
    • Added --fail-on-warning flag (exits with code 1 if warnings found)
    • Fixed --pretty flag inversion (now defaults to False, use --pretty to enable)
    • Added --no-pretty flag for explicit disabling
    • Documented config fallback behavior in _load_check_config()

Audit Findings Fixed

  • F3: Added --fail-on-warning option ✅
  • F4: Fixed --pretty flag (no longer inverted) ✅
  • F6: Documented config fallback behavior ✅

Testing

  • 765 tests passed
  • 2 pre-existing failures (unrelated script-as-module tests)

Phase 3 of 6

This is Phase 3 of the audit remediation roadmap.

- Add --fail-on-warning flag (exits with code 1 on warnings)
- Fix --pretty flag inversion (now defaults to False)
- Add --no-pretty flag for explicit disabling
- Document config fallback behavior in _load_check_config()

Fixes F3, F4, F6 from audit intake.
@geoffmcc
geoffmcc merged commit 73fe460 into main Jul 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant