Skip to content

enable linter: revive (early-return)

Codecov / codecov/patch succeeded Jun 7, 2024 in 1s

45.94% of diff hit (target 0.00%)

View this Pull Request on Codecov

45.94% of diff hit (target 0.00%)

Annotations

Check warning on line 145 in pkg/apiserver/papi.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/papi.go#L144-L145

Added lines #L144 - L145 were not covered by tests

Check warning on line 154 in pkg/apiserver/papi.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/apiserver/papi.go#L149-L154

Added lines #L149 - L154 were not covered by tests

Check warning on line 199 in pkg/appsec/appsec_rule/modsecurity.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/appsec/appsec_rule/modsecurity.go#L198-L199

Added lines #L198 - L199 were not covered by tests

Check warning on line 202 in pkg/appsec/appsec_rule/modsecurity.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/appsec/appsec_rule/modsecurity.go#L202

Added line #L202 was not covered by tests

Check warning on line 99 in pkg/appsec/coraza_logger.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/appsec/coraza_logger.go#L97-L99

Added lines #L97 - L99 were not covered by tests

Check warning on line 224 in pkg/csplugin/hclog_adapter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/csplugin/hclog_adapter.go#L224

Added line #L224 was not covered by tests

Check warning on line 227 in pkg/csplugin/hclog_adapter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/csplugin/hclog_adapter.go#L227

Added line #L227 was not covered by tests

Check warning on line 93 in pkg/exprhelpers/crowdsec_cti.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/exprhelpers/crowdsec_cti.go#L92-L93

Added lines #L92 - L93 were not covered by tests