Feature: Introduce golangci-lint #158
pr-request.yaml
on: pull_request
backend-tests
1m 11s
frontend-tests
2m 11s
license-header-check
28s
Matrix: build-frontend
Annotations
10 errors and 10 warnings
backend-tests:
pkg/common/httpclient/basic_http_client_test.go#L53
response body must be closed (bodyclose)
|
backend-tests:
pkg/common/httpclient/basic_http_client_test.go#L91
response body must be closed (bodyclose)
|
backend-tests:
pkg/common/httpclient/basic_http_client_test.go#L105
response body must be closed (bodyclose)
|
backend-tests:
pkg/inspection/server.go#L84
appendAssign: append result not assigned to the same slice (gocritic)
|
backend-tests:
cmd/kubernetes-history-inspector/main.go#L104
exitAfterDefer: os.Exit will exit, and `defer errorreport.CheckAndReportPanic()` will not run (gocritic)
|
backend-tests:
pkg/common/collection.go#L32
unlambda: replace `func(a, b string) int { return strings.Compare(a, b) }` with `strings.Compare` (gocritic)
|
backend-tests:
pkg/inspection/metadata/logger/throttle.go#L51
ifElseChain: rewrite if-else to switch statement (gocritic)
|
backend-tests:
pkg/log/structure/merger/merged.go#L646
appendAssign: append result not assigned to the same slice (gocritic)
|
backend-tests:
pkg/log/structure/merger/merged.go#L95
ifElseChain: rewrite if-else to switch statement (gocritic)
|
backend-tests:
pkg/log/structure/merger/merged.go#L217
ifElseChain: rewrite if-else to switch statement (gocritic)
|
license-header-check
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
license-header-check
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
backend-tests
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
backend-tests
Cache not found for keys: golangci-lint.cache-Linux-2877-32165c6608847c9c81d01e294f63c48904e841a8, golangci-lint.cache-Linux-2877-
|
build-frontend (dev)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
build-frontend (dev)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
build-frontend (prod)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
build-frontend (prod)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
frontend-tests
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
frontend-tests
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|