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
{{ message }}
Repository navigation
prefer_self_in_static_references false positive for Generics type in extensions #6674
When specifying the type a Generics type placeholder should conform to, the prefer_self_in_static_references falsely demands to use Self instead. This only seems to happen in extensions though. Example:
The rule flags the use of the View type in the extensions (specifically where V: View and <V: View>), but not in the declarations of the corresponding structs.
Command:
$ swiftlint
Error message:
warning: Prefer Self in Static References Violation: Use `Self` to refer to the surrounding type name (prefer_self_in_static_references)`
Activity