Skip to content

golangcilint: enable errorlint linter #343

golangcilint: enable errorlint linter

golangcilint: enable errorlint linter #343

Triggered via pull request January 9, 2024 10:38
@fhofho
opened #489
errorlint
Status Failure
Total duration 21s
Artifacts

golangcilint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint: internal/testutils/logwriter/logwrap.go#L48
comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
lint: internal/command/diff_inputs.go#L295
comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
lint: internal/command/diff_inputs.go#L334
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
lint: internal/command/ls_outputs.go#L62
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
lint: internal/command/ls_outputs.go#L70
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
lint: internal/exec/command.go#L121
type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
lint: internal/fs/fs.go#L177
comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
lint: pkg/baur/cfgupgrade.go#L49
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint: pkg/baur/cfgupgrade.go#L52
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint: pkg/baur/cfgupgrade.go#L145
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/baur/baur. Supported file pattern: go.sum