Skip to content

Use golangci-lint config from metal-toolbo/golangci-lint-config #1811

Use golangci-lint config from metal-toolbo/golangci-lint-config

Use golangci-lint config from metal-toolbo/golangci-lint-config #1811

Triggered via pull request February 3, 2025 14:27
Status Failure
Total duration 1m 5s
Artifacts

push-pr-lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint-test: cmd/validate_firmware.go#L8
File is not `gci`-ed with --skip-generated -s standard -s default (gci)
lint-test: cmd/validate_firmware.go#L10
File is not `gci`-ed with --skip-generated -s standard -s default (gci)
lint-test: cmd/collect/status.go#L9
File is not `gci`-ed with --skip-generated -s standard -s default (gci)
lint-test: cmd/common.go#L90
File is not `gofumpt`-ed with `-extra` (gofumpt)
lint-test: cmd/validate_firmware.go#L17
File is not `gofumpt`-ed with `-extra` (gofumpt)
lint-test: cmd/list/firmware_set.go#L25
File is not `gofumpt`-ed with `-extra` (gofumpt)
lint-test: internal/fleetdb/types.go#L75
tag is not aligned, should be: diff:"immutable" json:"capacity_bytes,omitempty" (tagalign)
lint-test: internal/auth/oauth.go#L200
Magic number: 20, in <argument> detected (mnd)
lint-test: internal/auth/oauth.go#L211
Magic number: 30, in <assign> detected (mnd)
lint-test: cmd/curl.go#L22
Magic number: 2, in <argument> detected (mnd)
lint-test: cmd/list/firmware_set.go#L32
unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)