-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add forbidigo linter #1569
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
Add forbidigo linter #1569
Conversation
7293bd5
to
110a30c
Compare
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.
Could you also run a go mod tidy
?
Thank you.
611242b
to
027dc68
Compare
Should we be verifying that |
Forbidigo forbids identifiers. It can be used to forbid code that is useful for debugging but should not be merged to the master branch.
027dc68
to
a6043b4
Compare
@ashanbrown there was an RP to change this behavior #1397. I think that this PR can be reverted since dependabot is now able to manage |
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.
LGTM
Forbidigo forbids identifiers. It can be used to forbid code that is useful for debugging but should not be merged to the master branch. I've found it particularly useful to make sure I don't commit
fmt.Print.*
statements orginkgo.F.*
commands that I've introduced during local debugging.Not sure if there is another linter that already does this. Please let me know if there is.
Base linter is at https://github.com/ashanbrown/forbidigo