Skip to content

lint error handling #3288

lint error handling

lint error handling #3288

Triggered via pull request December 7, 2023 16:10
@mmetcmmetc
synchronize #2644
lint-errorlint
Status Failure
Total duration 5m 0s
Artifacts

go-tests-windows.yml

on: pull_request
Matrix: Build + tests
Fit to window
Zoom out
Zoom in

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)