Skip to content

refactor: 优化并整理代码 (#12) #14

refactor: 优化并整理代码 (#12)

refactor: 优化并整理代码 (#12) #14

Triggered via push October 13, 2023 07:20
Status Failure
Total duration 1m 7s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

5 errors
lint: middlewares/accesslog/builder.go#L122
S1012: should use `time.Since` instead of `time.Now().Sub` (gosimple)
lint: middlewares/activelimit/redislimit/builder.go#L43
S1038: should use fmt.Printf instead of fmt.Println(fmt.Sprintf(...)) (but don't forget the newline) (gosimple)
lint: middlewares/activelimit/locallimit/builder.go#L50
S1023: redundant `return` statement (gosimple)
lint: middlewares/activelimit/redislimit/builder.go#L73
S1023: redundant `return` statement (gosimple)
lint
issues found