Skip to content

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

Merged
merged 9 commits into from
Mar 19, 2025
Merged

Conversation

prestonvanloon
Copy link
Member

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


getBlockRootTpl = idTemplate(getBlockRootPath)
getForkTpl = idTemplate(getForkForStatePath)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nice, ty

Copy link
Contributor

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.

kasey
kasey previously approved these changes Mar 19, 2025
@prestonvanloon prestonvanloon added this pull request to the merge queue Mar 19, 2025
Merged via the queue into develop with commit 2aa52fb Mar 19, 2025
17 checks passed
@prestonvanloon prestonvanloon deleted the nopanic branch March 19, 2025 18:11
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