Skip to content

feat: Add linter workflow #1

feat: Add linter workflow

feat: Add linter workflow #1

Triggered via push January 15, 2025 02:50
Status Failure
Total duration 28s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint: internal/app/maze/mazegenerator/model.go#L53
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: internal/app/maze/mazegenerator/model.go#L32
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
lint: internal/app/twenty48/twenty48.go#L53
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
lint: internal/app/connect4/connect4.go#L40
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
lint: internal/app/maze/maze.go#L79
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: internal/app/twenty48/twenty48.go#L199
G404: Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) (gosec)
lint: internal/app/dodger/dodger.go#L66
G404: Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) (gosec)
lint: internal/app/maze/mazegenerator/generator.go#L33
G404: Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) (gosec)
lint: internal/app/snake/snake.go#L43
unused-parameter: parameter 'm' seems to be unused, consider removing or renaming it as _ (revive)
lint: internal/app/dodger/dodger.go#L36
unnecessary conversion (unconvert)
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636