You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ revive --version && revive
version 1.1.4
example.go:9:1: receiver name b should be consistent with previous receiver name f for invalid-type
example.go:3:6: exported type Foo should have comment or be unexported
example.go:7:6: exported type Bar should have comment or be unexported
Expected behavior
I expected to not see any errors regarding receiver types.
The receiver error should not report "invalid-type".
Desktop (please complete the following information):
OS: Arch Linux
go version go1.18 linux/amd64
The text was updated successfully, but these errors were encountered:
The revive linter does not support type parameters with receiver-naming.
See mgechev/revive#669
Uh, also for some reason this bug is marked as a feature request.
Describe the bug
Revive reports receiver name error at first and only declaration.
To Reproduce
Run
revive
on this code:Expected behavior
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: