Skip to content

Add lint workflow

Add lint workflow #7

Triggered via pull request October 10, 2024 20:49
@cheshire137cheshire137
synchronize #10
go-linter
Status Failure
Total duration 26s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 2 warnings
lint: cmd/run/run.go#L320
deferInLoop: Possible resource leak, 'defer' is called in the 'for' loop (gocritic)
lint: cmd/run/run.go#L327
deferInLoop: Possible resource leak, 'defer' is called in the 'for' loop (gocritic)
lint: internal/azuremodels/client.go#L57
"POST" can be replaced by http.MethodPost (usestdlibvars)
lint: internal/azuremodels/client.go#L98
"GET" can be replaced by http.MethodGet (usestdlibvars)
lint: internal/azuremodels/client.go#L187
"POST" can be replaced by http.MethodPost (usestdlibvars)
lint: internal/ux/filtering.go#L1
package-comments: should have a package comment (revive)
lint: internal/ux/sorting.go#L1
ST1000: at least one file in a package should have a package comment (stylecheck)
lint
issues found
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/gh-models/gh-models. Supported file pattern: go.sum