Skip to content

Synchronize common files from prometheus/prometheus #381

Synchronize common files from prometheus/prometheus

Synchronize common files from prometheus/prometheus #381

Triggered via pull request July 4, 2023 17:48
Status Failure
Total duration 1m 34s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 4 warnings
lint
issues found
lint: config/config.go#L97
if-return: redundant if ...; err != nil check, just return error instead. (revive)
lint: config/config.go#L289
if-return: redundant if ...; err != nil check, just return error instead. (revive)
lint: generator/main.go#L33
unused-parameter: parameter 'nameToNode' seems to be unused, consider removing or renaming it as _ (revive)
lint: collector/collector_test.go#L534
superfluous-else: if block ends with a continue statement, so drop this else and outdent its block (revive)