Skip to content

tool: hdq

qiniu-x / golangci-lint failed Aug 2, 2024 in 14s

golangci-lint found 14 issues related to your changes

If you have any questions about this comment, feel free to raise an issue here.

Annotations

Check warning on line 51 in cmd/hdq/internal/help/help.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/internal/help/help.go#L51

unhandled-error: Unhandled error in call to function fmt.Fprintf (revive)

Check warning on line 122 in cmd/hdq/internal/help/help.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/internal/help/help.go#L122

unhandled-error: Unhandled error in call to function bufio.Writer.Flush (revive)

Check warning on line 92 in cmd/hdq/internal/help/help.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/internal/help/help.go#L92

use-any: since GO 1.18 'interface{}' can be replaced by 'any' (revive)

Check warning on line 52 in cmd/hdq/internal/help/help.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/internal/help/help.go#L52

deep-exit: calls to os.Exit only in main() or init() functions (revive)

Check warning on line 101 in cmd/hdq/internal/help/help.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/internal/help/help.go#L101

deep-exit: calls to os.Exit only in main() or init() functions (revive)

Check warning on line 103 in cmd/hdq/internal/help/help.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/internal/help/help.go#L103

deep-exit: calls to log.Fatalf only in main() or init() functions (revive)

Check warning on line 90 in cmd/hdq/internal/base/base.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/internal/base/base.go#L90

exitAfterDefer: os.Exit will exit, and `defer c.Flag.SetOutput(c.Flag.Output())` will not run (gocritic)

Check warning on line 52 in cmd/hdq/internal/base/base.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/internal/base/base.go#L52

Comment should end in a period (godot)

Check warning on line 59 in cmd/hdq/internal/base/base.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/internal/base/base.go#L59

Comment should end in a period (godot)

Check warning on line 82 in cmd/hdq/internal/base/base.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/internal/base/base.go#L82

unhandled-error: Unhandled error in call to function fmt.Fprintf (revive)

Check warning on line 89 in cmd/hdq/internal/base/base.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/internal/base/base.go#L89

unhandled-error: Unhandled error in call to function fmt.Fprintln (revive)

Check warning on line 37 in cmd/hdq/hdq.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/hdq.go#L37

deep-exit: calls to os.Exit only in main() or init() functions (revive)

Check warning on line 47 in cmd/hdq/hdq.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/hdq.go#L47

cyclomatic: function main has cyclomatic complexity 11 (> max enabled 10) (revive)

Check warning on line 63 in cmd/hdq/internal/fetch/fetch.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

cmd/hdq/internal/fetch/fetch.go#L63

Error return value of `enc.Encode` is not checked (errcheck)