Skip to content

fix(logFilters): Fix log filter error response #1

fix(logFilters): Fix log filter error response

fix(logFilters): Fix log filter error response #1

Triggered via pull request September 4, 2024 15:58
Status Failure
Total duration 43s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors
build-and-test
Process completed with exit code 1.
lint: example/setup.go#L12
G101: Potential hardcoded credentials (gosec)
lint: pkg/client/alert_condition_schema.go#L97
do not define dynamic errors, use wrapped static errors instead: "errors.New(\"alert operation not supported\")" (err113)
lint: pkg/client/alerts.go#L66
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"alert not found. id: %s\", id)" (err113)
lint: pkg/client/client.go#L80
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"client option error. fallback to default value: %s\", err)" (err113)
lint: pkg/client/logFilters.go#L38
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(err)" (err113)
lint: pkg/client/uri.go#L52
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unexpected type %T\", uri)" (err113)
lint: pkg/client/util.go#L30
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"%s. code: %s message: %s\", localMessage, serverCode, serverMessage)" (err113)
lint: pkg/client/website.go#L53
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unexpected type %T\", website)" (err113)
lint: pkg/client/logFilters_test.go#L280
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"create LogFilter failed. code=%s message=%s\", ExclusionFilterResponseCodeDuplicateEntry, message)" (err113)
lint: pkg/client/client.go#L123
AlertsService returns interface (github.com/solarwinds/swo-client-go/pkg/client.AlertsCommunicator) (ireturn)