Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint: replace type assertions and type switch on errors #3376

Merged
merged 6 commits into from
Dec 27, 2024

lint

c6a5b7a
Select commit
Loading
Failed to load commit list.
Merged

lint: replace type assertions and type switch on errors #3376

lint
c6a5b7a
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Dec 27, 2024 in 0s

34.09% of diff hit (target 0.00%)

View this Pull Request on Codecov

34.09% of diff hit (target 0.00%)

Annotations

Check warning on line 70 in cmd/crowdsec/win_service.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec/win_service.go#L70

Added line #L70 was not covered by tests

Check warning on line 236 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L232-L236

Added lines #L232 - L236 were not covered by tests

Check warning on line 240 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L239-L240

Added lines #L239 - L240 were not covered by tests

Check warning on line 259 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L255-L259

Added lines #L255 - L259 were not covered by tests

Check warning on line 262 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L262

Added line #L262 was not covered by tests

Check warning on line 297 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L297

Added line #L297 was not covered by tests

Check warning on line 373 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L373

Added line #L373 was not covered by tests

Check warning on line 379 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L378-L379

Added lines #L378 - L379 were not covered by tests

Check warning on line 410 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L410

Added line #L410 was not covered by tests

Check warning on line 440 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L440

Added line #L440 was not covered by tests

Check warning on line 463 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L463

Added line #L463 was not covered by tests

Check warning on line 472 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L472

Added line #L472 was not covered by tests

Check warning on line 478 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L478

Added line #L478 was not covered by tests

Check warning on line 512 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L510-L512

Added lines #L510 - L512 were not covered by tests

Check warning on line 518 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L517-L518

Added lines #L517 - L518 were not covered by tests

Check warning on line 523 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L522-L523

Added lines #L522 - L523 were not covered by tests

Check warning on line 578 in pkg/acquisition/modules/kinesis/kinesis.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kinesis/kinesis.go#L578

Added line #L578 was not covered by tests

Check warning on line 53 in pkg/apiserver/apiserver.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/apiserver.go#L49-L53

Added lines #L49 - L53 were not covered by tests

Check warning on line 60 in pkg/apiserver/apiserver.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/apiserver.go#L55-L60

Added lines #L55 - L60 were not covered by tests

Check warning on line 74 in pkg/apiserver/apiserver.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/apiserver.go#L69-L74

Added lines #L69 - L74 were not covered by tests

Check warning on line 80 in pkg/apiserver/apiserver.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/apiserver.go#L76-L80

Added lines #L76 - L80 were not covered by tests

Check warning on line 646 in pkg/database/alerts.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alerts.go#L645-L646

Added lines #L645 - L646 were not covered by tests