Skip to content

more linters (these need some trivial fixes) #749

more linters (these need some trivial fixes)

more linters (these need some trivial fixes) #749

Triggered via push October 30, 2024 16:07
Status Failure
Total duration 4m 13s
Artifacts

ci.yml

on: push
Matrix: test
lint
20s
lint
Check if man page has been regenerated
14s
Check if man page has been regenerated
allgreen
1s
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: decompressors_test.go#L42
increment-decrement: should replace i += 1 with i++ (revive)
lint: backend_qemu.go#L177
unused-parameter: parameter 'mount' seems to be unused, consider removing or renaming it as _ (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