-
Notifications
You must be signed in to change notification settings - Fork 277
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
Panic when contains empty type block declaration #792
Labels
Comments
My revive.toml file
|
Simple go file that causes problem:
|
QuangTung97
changed the title
Panic when empty type block declaration
Panic when contains empty type block declaration
Feb 17, 2023
Merged
Hi @QuangTung97, thanks for filling the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
revive panics when the source code contains
type ()
To Reproduce
Steps to reproduce the behavior:
type ()
declarationrevive -config revive.toml -formatter friendly ./...
Panic happened in the line:
github.com/mgechev/[email protected]/rule/redefines-builtin-id.go:92
Expected behavior
Should not panics without any meaningful messages.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: