-
Notifications
You must be signed in to change notification settings - Fork 287
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
Request: report "redefinition of the built-in" errors for function related variables #1022
Comments
Hi @skaji thank you for the proposal. Feel free to make a PR. |
It would be a good thing, because many projects overloaded min and max, they could be reported now they are available |
Oh,now I get it. One is about overloading function with a function, one is about overloading a function with a variable (via function argument) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Currently, function related variables are not checked by
redefinition of the built-in ...
.It would be nice if revive reports
redefinition of the built-in ...
errors for function related variables.For example, revive does not report any errors for the following
main.go
file:Describe the solution you'd like
revive reports
redefinition of the built-in ...
errors for function related variables, so that:Describe alternatives you've considered
NA
Additional context
I'm not completely certain, but I believe that by making the following changes, this feature can be implemented.
The text was updated successfully, but these errors were encountered: