ci: add linter and auto-labeler action #5
main.yml
on: pull_request
Go linter
/
lint
46s
Go test
/
test
52s
Go test
/
test-with-race
1m 0s
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
|