ci: add linter and auto-labeler action #4
main.yml
on: pull_request
Go linter
/
lint
50s
Go test
/
test
51s
Go test
/
test-with-race
1m 0s
Annotations
10 errors and 3 warnings
Go linter / lint:
cmd/tlin/main.go#L221
Consider pre-allocating `sortedFiles` (prealloc)
|
Go linter / lint:
cmd/tlin/main_test.go#L323
test helper function should start from t.Helper() (thelper)
|
Go linter / lint:
cmd/tlin/main_test.go#L323
func `createTempFiles` is unused (unused)
|
Go linter / lint:
cmd/tlin/main_test.go#L324
Consider pre-allocating `paths` (prealloc)
|
Go linter / lint:
cmd/tlin/main_test.go#L334
test helper function should start from t.Helper() (thelper)
|
Go linter / lint:
internal/analysis/cfg/builder.go#L182
ST1023: should omit type ast.Stmt from declaration; it will be inferred from the right-hand side (stylecheck)
|
Go linter / lint:
internal/analysis/cfg/cfg_test.go#L830
test helper function should start from t.Helper() (thelper)
|
Go linter / lint:
internal/analysis/cfg/cfg_test.go#L893
test helper function should start from t.Helper() (thelper)
|
Go linter / lint:
internal/analysis/cfg/cfg_test.go#L911
test helper function should start from t.Helper() (thelper)
|
Go linter / lint:
internal/analysis/cfg/cfg_test.go#L935
test helper function should start from t.Helper() (thelper)
|
Go test / test
Restore cache failed: Dependencies file is not found in /home/runner/work/tlin/tlin. Supported file pattern: go.sum
|
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-with-race
Restore cache failed: Dependencies file is not found in /home/runner/work/tlin/tlin. Supported file pattern: go.sum
|