-
Notifications
You must be signed in to change notification settings - Fork 18
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
Conversation
Thanks for the PR! I'll check it out as soon as I can. |
Hi @dixonwille , Just wanted to check in to see if you'd gotten a chance to take a look at this. Thanks again! -Tim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome Work!
Thank you! Do you think we could publish a new version of the linter (I assume Thanks again. |
@timkral done. |
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