crowdsecurity / crowdsec

CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.
https://crowdsec.net
MIT License
8.79k stars 453 forks source link

enable linter: revive (early-return) #3051

Closed mmetc closed 3 months ago

github-actions[bot] commented 3 months ago

@mmetc: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.

Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [BirthdayResearch/oss-governance-bot](https://github.com/BirthdayResearch/oss-governance-bot) repository.
github-actions[bot] commented 3 months ago

@mmetc: There are no area labels on this PR. You can add as many areas as you see fit.

Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [BirthdayResearch/oss-governance-bot](https://github.com/BirthdayResearch/oss-governance-bot) repository.
codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 41.46341% with 24 lines in your changes missing coverage. Please review.

Project coverage is 52.48%. Comparing base (550d422) to head (4c542dd). Report is 1 commits behind head on master.

Files Patch % Lines
pkg/apiserver/papi.go 0.00% 8 Missing :warning:
pkg/appsec/appsec_rule/modsecurity.go 57.14% 4 Missing and 2 partials :warning:
pkg/acquisition/modules/s3/s3.go 70.00% 3 Missing :warning:
pkg/appsec/coraza_logger.go 25.00% 3 Missing :warning:
pkg/csplugin/hclog_adapter.go 0.00% 2 Missing :warning:
pkg/exprhelpers/crowdsec_cti.go 33.33% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3051 +/- ## ========================================== - Coverage 52.48% 52.48% -0.01% ========================================== Files 281 281 Lines 35423 35415 -8 ========================================== - Hits 18593 18587 -6 Misses 15008 15008 + Partials 1822 1820 -2 ``` | [Flag](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3051/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | Coverage Δ | | |---|---|---| | [bats](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3051/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `40.23% <0.00%> (+<0.01%)` | :arrow_up: | | [unit-linux](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3051/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `34.85% <40.54%> (+<0.01%)` | :arrow_up: | | [unit-windows](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3051/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `30.97% <39.02%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.