Skip to content

github: Add static analysis #47

github: Add static analysis

github: Add static analysis #47

Triggered via pull request February 15, 2025 00:57
Status Failure
Total duration 9m 54s
Artifacts 1

tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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