chore: use logc instead of logx if possible #4643
reviewdog.yml
on: pull_request
runner / staticcheck
1m 59s
Annotations
3 errors and 1 warning
runner / staticcheck
[staticcheck] reported by reviewdog 🐶
# github.com/zeromicro/go-zero/core/discov/internal
core/discov/internal/registry.go:15:2: "github.com/zeromicro/go-zero/core/logx" imported and not used
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/zeromicro/go-zero/core/discov/internal\ncore/discov/internal/registry.go:15:2: \"github.com/zeromicro/go-zero/core/logx\" imported and not used","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
runner / staticcheck
[staticcheck] reported by reviewdog 🐶
# github.com/zeromicro/go-zero/core/discov/internal [github.com/zeromicro/go-zero/core/discov/internal.test]
core/discov/internal/registry.go:15:2: "github.com/zeromicro/go-zero/core/logx" imported and not used
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/zeromicro/go-zero/core/discov/internal [github.com/zeromicro/go-zero/core/discov/internal.test]\ncore/discov/internal/registry.go:15:2: \"github.com/zeromicro/go-zero/core/logx\" imported and not used","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
runner / staticcheck
[staticcheck] reported by reviewdog 🐶
# github.com/zeromicro/go-zero/rest/handler [github.com/zeromicro/go-zero/rest/handler.test]
rest/handler/cryptionhandler_test.go:177:11: not enough arguments in call to w.flush
have ([]byte)
want (context.Context, []byte)
rest/handler/cryptionhandler_test.go:194:11: not enough arguments in call to w.flush
have ([]byte)
want (context.Context, []byte)
rest/handler/cryptionhandler_test.go:210:11: not enough arguments in call to w.flush
have ([]byte)
want (context.Context, []byte)
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/zeromicro/go-zero/rest/handler [github.com/zeromicro/go-zero/rest/handler.test]\nrest/handler/cryptionhandler_test.go:177:11: not enough arguments in call to w.flush\n\thave ([]byte)\n\twant (context.Context, []byte)\nrest/handler/cryptionhandler_test.go:194:11: not enough arguments in call to w.flush\n\thave ([]byte)\n\twant (context.Context, []byte)\nrest/handler/cryptionhandler_test.go:210:11: not enough arguments in call to w.flush\n\thave ([]byte)\n\twant (context.Context, []byte)","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
runner / staticcheck
Unexpected input(s) 'fail_level', valid inputs are ['github_token', 'workdir', 'level', 'reporter', 'filter_mode', 'fail_on_error', 'reviewdog_flags', 'target', 'staticcheck_flags']
|