more linters (these need some trivial fixes) #749
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
|