Skip to content

Fix silently ignored positional scan paths - #19

Open
KingEmma7 wants to merge 1 commit into
AgentPostmortem:mainfrom
KingEmma7:fix/reject-multiple-scan-paths
Open

Fix silently ignored positional scan paths#19
KingEmma7 wants to merge 1 commit into
AgentPostmortem:mainfrom
KingEmma7:fix/reject-multiple-scan-paths

Conversation

@KingEmma7

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes #8. Rejects multiple positional paths with exit code 2 and an actionable error, instead of silently scanning only the last target. Default-directory and single-target usage remain supported.

Checklist

  • Tests pass (node --test)
  • Updated docs / README if behavior changed
  • Added a CHANGELOG.md entry
  • Followed the existing code style

Notes

Regression fails before the fix; all 17 tests pass on Node 20 and 18. CLI checks cover path handling, option placement, and text/JSON/SARIF output. Patch version bumped to 0.1.5.

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.

Multiple positional paths silently ignored, last one wins

1 participant