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

Improve sort-flags to fix unknown patterns #338

Merged
merged 2 commits into from
Sep 26, 2021
Merged

Improve sort-flags to fix unknown patterns #338

merged 2 commits into from
Sep 26, 2021

Conversation

RunDevelopment
Copy link
Collaborator

Fixes #337.

The main change is that fixReplaceFlags now takes an includePattern parameter. This controls whether a flags fix includes the whole pattern as well. Including the whole pattern is necessary in pretty much all cases except for sorting (and maybe some others), so it will default to true.

Copy link
Owner

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

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

Thank you for the quick fix! LGTM!

@ota-meshi ota-meshi merged commit 04829b9 into master Sep 26, 2021
@ota-meshi ota-meshi deleted the issue337 branch September 26, 2021 10:18
@RunDevelopment
Copy link
Collaborator Author

Thank you for the quick release @ota-meshi!

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.

sort-flags should autofix flags that's a string literal
2 participants