Skip to content

feat: add no-error-on-unmatched-pattern option#639

Merged
kodiakhq[bot] merged 3 commits intosbdchd:masterfrom
PascalFrenz:frenzpa/no-error-on-unmatched-pattern
Sep 2, 2025
Merged

feat: add no-error-on-unmatched-pattern option#639
kodiakhq[bot] merged 3 commits intosbdchd:masterfrom
PascalFrenz:frenzpa/no-error-on-unmatched-pattern

Conversation

@PascalFrenz
Copy link
Contributor

Currently, squawk exits with failure when the provided path pattern does not match any file.
This behavior can be unexpected, specifically when squawk is given the instruction to ignore files (via excluded_paths ) and thus does not find any file to work on.

See issues #387 and #363 for more details.

This PR adds the option --no-error-on-unmatched-pattern, which causes the exit code to be 0 in cases mentioned above. squawk will still print the message stating that no files were found with the given pattern, which should help debugging cases where this may be unexpected.

@netlify
Copy link

netlify bot commented Sep 2, 2025

👷 Deploy request for squawkhq pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6dbcd88

Copy link
Owner

@sbdchd sbdchd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@sbdchd sbdchd added the automerge automerge with kodiak label Sep 2, 2025
@kodiakhq kodiakhq bot merged commit 8b161d1 into sbdchd:master Sep 2, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge automerge with kodiak

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants