Skip to content
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

checkers: return an error instead of panic in InitEmbeddedRules #1250

Merged
merged 1 commit into from Aug 14, 2022

Conversation

ldez
Copy link
Contributor

@ldez ldez commented Aug 14, 2022

Related to #1246 and #1218.

Inside golangci-lint, we have to catch the panic with a recover.
It's more API friendly if the function InitEmbeddedRules returns an error.

@quasilyte quasilyte merged commit 284a322 into go-critic:master Aug 14, 2022
@ldez ldez deleted the feat/error-panic branch August 14, 2022 23:21
@ldez ldez changed the title feat(InitEmbeddedRules): return an error instead of panic checkers: return an error instead of panic in InitEmbeddedRules Aug 14, 2022
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.

None yet

2 participants