lint error handling #3288
Annotations
10 errors
Build + tests (1.21.5):
pkg/database/alerts.go#L714
type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
|
Build + tests (1.21.5):
pkg/database/alerts.go#L745
comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
Build + tests (1.21.5):
pkg/apiserver/controllers/v1/errors.go#L12
switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors (errorlint)
|
Build + tests (1.21.5):
cmd/crowdsec/win_service.go#L69
type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
|
Build + tests (1.21.5):
pkg/acquisition/acquisition.go#L260
type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
|
Build + tests (1.21.5):
pkg/acquisition/modules/kinesis/kinesis.go#L215
type switch on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
|
Build + tests (1.21.5):
pkg/acquisition/modules/kinesis/kinesis.go#L235
type switch on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
|
Build + tests (1.21.5):
pkg/acquisition/modules/kinesis/kinesis.go#L453
type switch on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
|
Build + tests (1.21.5):
pkg/acquisition/modules/wineventlog/wineventlog_windows.go#L90
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
Build + tests (1.21.5):
pkg/acquisition/modules/wineventlog/wineventlog_windows.go#L184
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|