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
Describe the bug
The string-format rule search only for function calls and methods, but if the object is
inside a structure, the method call is not found by the rule.
This is a typical pattern when we want a generic Logger interface and different implementations. In this case Logger is a port and MyLogger would be an adapter from a project with hexagonal architecture. This implementation is injected in main to a service.
Describe the bug
The string-format rule search only for function calls and methods, but if the object is
inside a structure, the method call is not found by the rule.
This is a typical pattern when we want a generic Logger interface and different implementations. In this case
Logger
is a port andMyLogger
would be an adapter from a project with hexagonal architecture. This implementation is injected in main to a service.To Reproduce
Steps to reproduce the behavior:
config
Expected behavior
I spect it to fail with
./tests/main.go:23:17: must not start with a capital letter
as the logger.Error call start with a capital letter
Desktop (please complete the following information):
Additional context
MR is created with working solution (I don't know if the best)
The text was updated successfully, but these errors were encountered: