github: Add static analysis #47
tests.yml
on: pull_request
Code
1m 13s
End to end testing
8m 33s
Annotations
6 errors and 2 warnings
Code:
incus-osd/cmd/incus-osd/main.go#L40
cognitive complexity 73 of func `run` is high (> 30) (gocognit)
|
Code:
incus-osd/cmd/incus-osd/main.go#L137
defer: prefer not to defer inside loops (revive)
|
Code:
incus-osd/cmd/incus-osd/main.go#L144
defer: prefer not to defer inside loops (revive)
|
Code:
incus-osd/cmd/incus-osd/main.go#L151
defer: prefer not to defer inside loops (revive)
|
Code:
incus-osd/cmd/incus-osd/main.go#L113
`if release != ghRelease.GetName()` has complex nested blocks (complexity: 10) (nestif)
|
Code
issues found
|
Code
Restore cache failed: Dependencies file is not found in /home/runner/work/incus-os/incus-os. Supported file pattern: go.sum
|
Code
Cache not found for keys: golangci-lint.cache-Linux-incus-osd-2876-6732f852ee6b16cc03118b2050d8c6b1ba7f0d2b, golangci-lint.cache-Linux-incus-osd-2876-
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Differential ShellCheck SARIF
|
342 Bytes |
|