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: wasted regexp #30

Merged
merged 1 commit into from Jan 17, 2022
Merged

fix: wasted regexp #30

merged 1 commit into from Jan 17, 2022

Conversation

butuzov
Copy link
Contributor

@butuzov butuzov commented Jan 11, 2022

Removes unnecessary checks & adds ones tool really need.

Description

This PR enable go-mnd to ignore empty settings (e.g ",some,,,,")

Motivation and Context

While adding docs to golangci-lint I found that empty regular expression added always to go-mnd if ignored-files option supplied. Found that any other settings have this issues too. While this is isn't important issue it's (slightly) affects the performance of any tool (golangci-lint) using package.

How Has This Been Tested?

make test with existing tests.

@butuzov
Copy link
Contributor Author

butuzov commented Jan 11, 2022

Previously seen at #24 and 98ad5e9

@tommy-muehle tommy-muehle merged commit c5e4f67 into tommy-muehle:master Jan 17, 2022
@butuzov butuzov deleted the wasterd-regexp branch January 18, 2022 07:38
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.

None yet

2 participants