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: enable (some) gocritic checks #3238

Merged
merged 10 commits into from
Sep 17, 2024
Merged

lint: enable (some) gocritic checks #3238

merged 10 commits into from
Sep 17, 2024

Conversation

mmetc
Copy link
Contributor

@mmetc mmetc commented Sep 16, 2024

No description provided.

@mmetc mmetc added this to the 1.6.4 milestone Sep 16, 2024
Copy link

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

  • /area agent
  • /area local-api
  • /area cscli
  • /area appsec
  • /area security
  • /area configuration
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file 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 repository.

@mmetc mmetc force-pushed the lint-gocritic branch 2 times, most recently from 44825ca to 52bc301 Compare September 16, 2024 09:50
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

Attention: Patch coverage is 41.37931% with 51 lines in your changes missing coverage. Please review.

Project coverage is 51.26%. Comparing base (5f22c78) to head (5b484b6).

Files with missing lines Patch % Lines
pkg/apiserver/controllers/v1/decisions.go 0.00% 11 Missing ⚠️
cmd/crowdsec-cli/clihub/utils_table.go 25.00% 3 Missing ⚠️
pkg/database/utils.go 0.00% 2 Missing and 1 partial ⚠️
pkg/hubtest/nucleirunner.go 0.00% 3 Missing ⚠️
cmd/crowdsec-cli/climachine/machines.go 33.33% 2 Missing ⚠️
cmd/crowdsec-cli/climetrics/statacquis.go 0.00% 2 Missing ⚠️
cmd/crowdsec-cli/climetrics/statappsecengine.go 0.00% 2 Missing ⚠️
cmd/crowdsec-cli/climetrics/statbucket.go 0.00% 2 Missing ⚠️
cmd/crowdsec-cli/climetrics/statparser.go 0.00% 2 Missing ⚠️
cmd/crowdsec-cli/climetrics/statstash.go 0.00% 2 Missing ⚠️
... and 13 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3238      +/-   ##
==========================================
- Coverage   51.27%   51.26%   -0.01%     
==========================================
  Files         355      355              
  Lines       38839    38834       -5     
==========================================
- Hits        19915    19910       -5     
+ Misses      16958    16957       -1     
- Partials     1966     1967       +1     
Flag Coverage Δ
bats 40.81% <29.41%> (-0.06%) ⬇️
unit-linux 34.68% <19.27%> (-0.01%) ⬇️
unit-windows 28.60% <13.25%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@sabban sabban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mmetc mmetc merged commit b93b240 into master Sep 17, 2024
17 checks passed
@mmetc mmetc deleted the lint-gocritic branch September 17, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants