We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In GO it is possible to define a method that does not use its receiver:
func (ms *myStruct) Foo() { return }
The above method can be also written to explicitly state that the receiver is not used:
func (_ *myStruct) Foo() { return }
or
func (*myStruct) Foo() { return }
I propose to create a new rule (unused-receiver?) to cope with this pattern
unused-receiver
The text was updated successfully, but these errors were encountered:
chavacava
Successfully merging a pull request may close this issue.
In GO it is possible to define a method that does not use its receiver:
The above method can be also written to explicitly state that the receiver is not used:
or
I propose to create a new rule (
unused-receiver
?) to cope with this patternThe text was updated successfully, but these errors were encountered: