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.1k stars 419 forks source link

enable linter: revive (indent-error-flow) #3068

Closed mmetc closed 2 weeks ago

github-actions[bot] commented 3 weeks 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 weeks ago

Codecov Report

Attention: Patch coverage is 50.00000% with 29 lines in your changes missing coverage. Please review.

Project coverage is 34.10%. Comparing base (7fd01ae) to head (65a8d31).

Files Patch % Lines
...on/modules/loki/internal/lokiclient/loki_client.go 0.00% 10 Missing :warning:
pkg/acquisition/modules/kinesis/kinesis.go 50.00% 5 Missing :warning:
pkg/acquisition/modules/s3/s3.go 54.54% 5 Missing :warning:
pkg/types/event.go 0.00% 4 Missing :warning:
pkg/leakybucket/reset_filter.go 81.25% 2 Missing and 1 partial :warning:
pkg/acquisition/modules/appsec/rx_operator.go 0.00% 1 Missing :warning:
pkg/hubtest/hubtest_item.go 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3068 +/- ## =========================================== - Coverage 49.14% 34.10% -15.04% =========================================== Files 281 280 -1 Lines 35429 35421 -8 =========================================== - Hits 17410 12080 -5330 - Misses 16288 22040 +5752 + Partials 1731 1301 -430 ``` | [Flag](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3068/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/3068/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `?` | | | [unit-linux](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3068/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `34.82% <46.29%> (?)` | | | [unit-windows](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3068/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `30.96% <41.37%> (-0.01%)` | :arrow_down: | 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.