Skip to content

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

fix(logFilters): Fix log filter error response

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

Triggered via pull request September 4, 2024 16:04
Status Failure
Total duration 47s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
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/apiTokens.go#L61
return both the `nil` error and invalid value: use a sentinel error instead (nilnil)
lint: example/setup.go#L12
G101: Potential hardcoded credentials (gosec)