Skip to content

update hack/tools, update golangci-lint and fix lints #1612

update hack/tools, update golangci-lint and fix lints

update hack/tools, update golangci-lint and fix lints #1612

Triggered via pull request July 10, 2024 11:37
Status Failure
Total duration 1m 31s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: internal/command/flags/flags.go#L159
Error return value is not checked (errcheck)
lint: infrastructure/microvm/cloudhypervisor/create.go#L161
assignOp: replace `arg = arg + netInt.GuestMAC` with `arg += netInt.GuestMAC` (gocritic)
lint: infrastructure/microvm/cloudhypervisor/create.go#L136
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: infrastructure/microvm/cloudhypervisor/provider.go#L165
commentFormatting: put a space between `//` and comment text (gocritic)
lint: core/models/volumes.go#L35
Comment should end in a period (godot)
lint: pkg/cloudhypervisor/client.go#L162
Comment should end in a period (godot)
lint: pkg/cloudhypervisor/types.go#L331
Comment should end in a period (godot)
lint: internal/command/flags/flags.go#L156
Comment should end in a period (godot)
lint: infrastructure/microvm/cloudhypervisor/create.go#L57
G204: Subprocess launched with a potential tainted input or cmd arguments (gosec)
lint: internal/command/flags/flags.go#L25
G101: Potential hardcoded credentials (gosec)