Update test.yml #275
Annotations
10 errors
lint:
module/middleware/proxy/proxy.go#L41
Error return value of `ctx.Writer.Write` is not checked (errcheck)
|
lint:
service/favorite/action_test.go#L25
Error return value of `f.Create` is not checked (errcheck)
|
lint:
module/middleware/cache/ip_limiter.go#L28
Error return value of `(*github.com/redis/go-redis/v9.IntCmd).Result` is not checked (errcheck)
|
lint:
dao/comment_test.go#L12
don't use `init` function (gochecknoinits)
|
lint:
dao/favorite_test.go#L15
don't use `init` function (gochecknoinits)
|
lint:
dao/follow_test.go#L14
don't use `init` function (gochecknoinits)
|
lint:
module/middleware/proxy/proxy.go#L15
commentFormatting: put a space between `//` and comment text (gocritic)
|
lint:
module/middleware/proxy/proxy.go#L24
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(ctx.Request.RequestURI, proxyOption.PathRewrite, "", -1)` (gocritic)
|
lint:
module/response/video_response.go#L74
ifElseChain: rewrite if-else to switch statement (gocritic)
|
lint:
module/middleware/cache/cache.go#L28
commentFormatting: put a space between `//` and comment text (gocritic)
|