Skip to content

Add lint workflow

Add lint workflow #4

Triggered via pull request October 10, 2024 18:24
@cheshire137cheshire137
synchronize #10
go-linter
Status Failure
Total duration 32s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
lint: cmd/run/run.go#L191
Function name: NewRunCommand, Cyclomatic Complexity: 47, Halstead Volume: 6694.19, Maintainability Index: 14 (maintidx)
lint: cmd/run/run.go#L313
`if strings.HasPrefix(prompt, "/")` has complex nested blocks (complexity: 15) (nestif)
lint: cmd/run/run.go#L391
deferInLoop: Possible resource leak, 'defer' is called in the 'for' loop (gocritic)
lint: cmd/run/run.go#L398
deferInLoop: Possible resource leak, 'defer' is called in the 'for' loop (gocritic)
lint: cmd/run/run.go#L418
unhandled-error: Unhandled error in call to function strings.Builder.WriteString (revive)
lint: cmd/run/run.go#L422
unhandled-error: Unhandled error in call to function strings.Builder.WriteString (revive)
lint: cmd/run/run.go#L434
unhandled-error: Unhandled error in call to function strings.Builder.WriteString (revive)
lint: cmd/view/model_printer.go#L62
paramTypeCombine: func(label string, value string) could be replaced with func(label, value string) (gocritic)
lint: cmd/view/model_printer.go#L79
paramTypeCombine: func(label string, value string) could be replaced with func(label, value string) (gocritic)
lint: internal/azure_models/client.go#L2
var-naming: don't use an underscore in package name (revive)
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