Skip to content

ci: add linter and auto-labeler action #5

ci: add linter and auto-labeler action

ci: add linter and auto-labeler action #5

Triggered via pull request September 30, 2024 03:06
@notJoonnotJoon
synchronize #79
actions
Status Failure
Total duration 1m 8s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 3 warnings
Go linter / lint: cmd/tlin/main_test.go#L323
test helper function should start from t.Helper() (thelper)
Go linter / lint: internal/fixer/fixer.go#L28
ST1016: methods on the same type should have the same receiver name (seen 1x "c", 2x "f") (stylecheck)
Go linter / lint: internal/lints/cyclomatic_complexity.go#L32
unnecessary leading newline (whitespace)
Go linter / lint: internal/lints/default_golangci.go#L52
Consider pre-allocating `issues` (prealloc)
Go linter / lint: internal/lints/detect_cycles.go#L15
Consider pre-allocating `issues` (prealloc)
Go linter / lint: internal/lints/simplify_slice_expr.go#L20
string `len` has 3 occurrences, make it a constant (goconst)
Go linter / lint
issues found
Go linter / lint
Restore cache failed: Dependencies file is not found in /home/runner/work/tlin/tlin. Supported file pattern: go.sum
Go test / test
Restore cache failed: Dependencies file is not found in /home/runner/work/tlin/tlin. Supported file pattern: go.sum
Go test / test-with-race
Restore cache failed: Dependencies file is not found in /home/runner/work/tlin/tlin. Supported file pattern: go.sum