Skip to content

fix(lint): fixed some lint errors #1462

fix(lint): fixed some lint errors

fix(lint): fixed some lint errors #1462

Triggered via push September 6, 2024 14:18
Status Success
Total duration 42s
Artifacts

lint-soft.yml

on: push
lint-soft
32s
lint-soft
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 1 warning
lint-soft: record.go#L165
`if token.Type(lines[i]) == token.SLEEP` has complex nested blocks (complexity: 9) (nestif)
lint-soft: command.go#L168
`if ok` has complex nested blocks (complexity: 6) (nestif)
lint-soft: command.go#L208
`if ok` has complex nested blocks (complexity: 6) (nestif)
lint-soft: vhs.go#L352
Magic number: 0o600, in <argument> detected (gomnd)
lint-soft: vhs.go#L360
Magic number: 0o600, in <argument> detected (gomnd)
lint-soft: draw.go#L394
Magic number: 7, in <case> detected (gomnd)
lint-soft: draw.go#L396
Magic number: 6, in <case> detected (gomnd)
lint-soft: draw.go#L398
Magic number: 4, in <case> detected (gomnd)
lint-soft: draw.go#L404
Magic number: 3, in <case> detected (gomnd)
lint-soft
Restore cache failed: Dependencies file is not found in /home/runner/work/vhs/vhs. Supported file pattern: go.sum