-
Notifications
You must be signed in to change notification settings - Fork 20
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
Comment imports to tolerate exceptions #6
Comments
If this idea is acceptable I would be happy to explore if it's possible and put together a PR. |
Thanks nnuter. This makes sense, maybe there are some packages or files where people can't change and have to use certain packages. Do you know how other linters use this in their code? I think |
Since I guess I'll explore this a bit since you seem interested. |
Comment directive is based on staticcheck. For: fatih#6
I created a PR. It was pretty easy to add. We can see what you think of the code, etc. Happy to iterate on any feedback or if you want to just take it and run with it that's fine with me too. |
+1 to this request, but we might want to make it work for all declarations: #8 (: |
I guess I'll wait until that PR is merged and then maybe take another pass at it. |
Thanks! |
New PR up. |
💪 |
Imagine wanting to avoid a package but, in practice, needing to be able to tolerate exceptions to it (while using
faillint
in a CI pipeline). Much like many linting tools I wonder if the import could be annotated like,So if we had
-path "github.com/gogo/protobuf/proto=github.com/golang/protobuf/proto"
butfaillint
saw a// faillint:
annotation it would suppress its objection (and if no objections exit zero).The text was updated successfully, but these errors were encountered: