Skip to content

Enable more golangci linters #750

Enable more golangci linters

Enable more golangci linters #750

Triggered via pull request October 30, 2024 16:07
Status Failure
Total duration 4m 55s
Artifacts

ci.yml

on: pull_request
Matrix: test
lint
23s
lint
Check if man page has been regenerated
15s
Check if man page has been regenerated
allgreen
2s
allgreen
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 1 warning
lint: cpio/writerhelper.go#L178
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: decompressors.go#L28
commentFormatting: put a space between `//` and comment text (gocritic)
lint: machine.go#L425
assignOp: replace `m.count = m.count + 1` with `m.count++` (gocritic)
lint: backend_qemu.go#L54
`usefull` is a misspelling of `useful` (misspell)
lint: machine.go#L243
`especialy` is a misspelling of `especially` (misspell)
lint: cmd/fakemachine/main.go#L149
superfluous-else: if block ends with call to os.Exit function, so drop this else and outdent its block (revive)
lint: backend_qemu.go#L177
unused-parameter: parameter 'mount' seems to be unused, consider removing or renaming it as _ (revive)
lint: decompressors_test.go#L42
increment-decrement: should replace i += 1 with i++ (revive)
lint: machine.go#L569
increment-decrement: should replace i += 1 with i++ (revive)
lint: cmd/fakemachine/main.go#L15
tag is not aligned, should be: default:"auto" description:"Virtualisation backend to use" long:"backend" short:"b" (tagalign)
allgreen
Process completed with exit code 1.
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/fakemachine/fakemachine. Supported file pattern: go.sum