chore(lint): Optimize a large number of lint detection issues #3
Annotations
6 errors and 6 warnings
golangci-lint:
gorm/adapter/logger.go#L36
string `[rows:%v]` has 3 occurrences, make it a constant (goconst)
|
golangci-lint:
gorm/adapter/logger.go#L33
string `%s
|
golangci-lint:
helper/helper_test.go#L24
string `bar` has 4 occurrences, make it a constant (goconst)
|
golangci-lint:
gorm/adapter/logger.go#L37
line is 178 characters (lll)
|
golangci-lint:
gorm/adapter/logger.go#L38
line is 168 characters (lll)
|
golangci-lint
issues found
|
golangci-lint:
crontab/server.go#L109
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
udp/server.go#L85
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
udp/server.go#L137
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
cache/redis/store.go#L81
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
golangci-lint:
cache/redis/store.go#L109
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
golangci-lint:
cache/redis/store.go#L117
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
The logs for this run have expired and are no longer available.
Loading