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

Ignore File Rules #21

Merged
merged 14 commits into from
Jan 4, 2022
Merged

Ignore File Rules #21

merged 14 commits into from
Jan 4, 2022

Conversation

timkral
Copy link
Contributor

@timkral timkral commented Dec 24, 2021

Hi @dixonwille ,

I'm very interested in using your linter (thank you for writing it), however, I have a use case in which I want to apply package import checks to only a portion of my code base. So I've introduced a new concept which allows a user to write rules to ignore files considered by the linter.

The syntax and semantics of the rules is very nearly the same as those for the package import checks (i.e. string prefixes and string glob patterns). However, there is a small caveat in which the rules have special syntax which allows for negation. I provided examples and a description of this in the README.

You'll also find that I added a number of tests to check the new functionality and avoid regressions. I'm pretty confident that these changes are backwards compatible and include no regression to existing functionality.

Let me know what you think and if there are any other changes that are needed.

Thanks.
-Tim

@dixonwille
Copy link
Member

Thanks for the PR! I'll check it out as soon as I can.

@timkral
Copy link
Contributor Author

timkral commented Jan 4, 2022

Hi @dixonwille ,

Just wanted to check in to see if you'd gotten a chance to take a look at this. Thanks again!

-Tim

Copy link
Member

@dixonwille dixonwille left a comment

Choose a reason for hiding this comment

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

Awesome Work!

@dixonwille dixonwille merged commit 6b0e4d4 into OpenPeeDeeP:master Jan 4, 2022
@timkral
Copy link
Contributor Author

timkral commented Jan 7, 2022

@dixonwille ,

Thank you! Do you think we could publish a new version of the linter (I assume v1.1.0)? I actually am planning on using it in golangci-lint. If you publish the version, I can take care of updating the configuration in golangci-lint and will tag you for review.

Thanks again.
-Tim

@dixonwille
Copy link
Member

@timkral done.

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.

2 participants