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

fix: ban grep long flags #1117

Merged
merged 2 commits into from Dec 9, 2021
Merged

fix: ban grep long flags #1117

merged 2 commits into from Dec 9, 2021

Conversation

Stratus3D
Copy link
Member

Fixes #1109

Rather than just having one array of both literal commands and regex patterns, I split the banned commands into two arrays - one of literal commands and one of regex. This allows us to use the -E (extended regex) option when looking for banned commands via regex.

@Stratus3D Stratus3D requested a review from a team as a code owner December 8, 2021 21:04
Copy link
Contributor

@jthegedus jthegedus 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 to me

@jthegedus jthegedus changed the title Ban grep long flags fix: ban grep long flags Dec 9, 2021
@Stratus3D
Copy link
Member Author

I will fix the linter errors and merge tomorrow.

@jthegedus
Copy link
Contributor

jthegedus commented Dec 9, 2021

It was just a semantic-pr lint issue. PRs with a single commit have their commit used as the merge name, not the PR title. So the commit must match the semantic-pr naming convention or have more than one commit which means GIttHub will then use the PR title.

@jthegedus jthegedus merged commit 6e4c39c into master Dec 9, 2021
@jthegedus jthegedus deleted the tb/ban-grep-long-flags branch December 9, 2021 02:17
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.

bug: ban longhand grep options as they are not supported on Alpine
2 participants