Skip to content

chore(lint): Optimize a large number of lint detection issues #4

chore(lint): Optimize a large number of lint detection issues

chore(lint): Optimize a large number of lint detection issues #4

Triggered via pull request January 5, 2024 15:18
@flc1125flc1125
synchronize #57
2.x-lint
Status Failure
Total duration 32s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 6 warnings
lint: gorm/adapter/logger.go#L36
string `[%.3fms] ` has 3 occurrences, make it a constant (goconst)
lint: gorm/adapter/logger.go#L33
string `%s
lint: helper/helper_test.go#L24
string `bar` has 4 occurrences, make it a constant (goconst)
lint: gorm/adapter/logger.go#L37
line is 178 characters (lll)
lint: gorm/adapter/logger.go#L38
line is 168 characters (lll)
lint
issues found
lint: udp/server.go#L85
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
lint: udp/server.go#L137
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
lint: crontab/server.go#L109
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
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)
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)
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)