-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add static analyzer to discourage use of panic() #15075
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
Conversation
Fix violations and add exclusions for all
|
||
getBlockRootTpl = idTemplate(getBlockRootPath) | ||
getForkTpl = idTemplate(getForkForStatePath) | ||
} |
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.
nice, ty
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.
not a review comment warranting a new commit, just a note for later - a couple times I've put func init
in its own file called init.go
and that pattern has grown on me.
What type of PR is this?
Other
What does this PR do? Why is it needed?
This static analyzer complains when you try to use
panic()
. Please do not panic, it's usually very bad.Which issues(s) does this PR fix?
Other notes for review
Acknowledgements