Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add a flag & config for skipping path glob patterns #350

Merged
merged 5 commits into from
May 31, 2024

Conversation

rdaniels6813
Copy link
Contributor

Adding a CLI flag as well as a field in the config file for skipping paths using glob patterns. This is useful for introducing the linter on an already live service which had linter warnings on previous migrations.

Copy link

netlify bot commented May 29, 2024

👷 Deploy request for squawkhq pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 542fa84

@sbdchd sbdchd requested a review from chdsbd May 30, 2024 00:59
@@ -27,6 +27,7 @@ squawk-parser = { version = "0.0.0", path = "../parser" }
squawk-linter = { version = "0.0.0", path = "../linter" }
squawk-github = { version = "0.0.0", path = "../github" }
toml = "0.5.9"
glob = "0.3.1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think eventually it'd be cool to support globs for finding paths

///
/// --exclude-path='*user_ids.sql'
#[structopt(long = "exclude-path")]
excluded_path: Option<Vec<String>>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I removed the use_delimiter setting because I think paths can containe ,. Now users can specify the --exclude-path flag multiple times instead.

@chdsbd chdsbd added the automerge automerge with kodiak label May 31, 2024
@chdsbd
Copy link
Collaborator

chdsbd commented May 31, 2024

Thank you for the PR @rdaniels6813!

@kodiakhq kodiakhq bot merged commit d2a8e26 into sbdchd:master May 31, 2024
12 checks passed
@chdsbd
Copy link
Collaborator

chdsbd commented May 31, 2024

squawk-cli@0.29.0 has been publish to NPM

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