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

feat: add unconvert check for golang-lint #2554

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

Fish-pro
Copy link
Contributor

@Fish-pro Fish-pro commented Feb 1, 2023

Signed-off-by: Fish-pro zechun.chen@daocloud.io

What this PR does / why we need it:

➜  gatekeeper git:(chore/unconvert) golangci-lint run -c .golangci.yaml
pkg/metrics/registry/registry.go:63:37: unnecessary conversion (unconvert)
                contents = append(contents, string(k))
                                                  ^
➜  gatekeeper git:(chore/unconvert) ✗ golangci-lint run -c .golangci.yaml
➜  gatekeeper git:(chore/unconvert) ✗ 

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #

Special notes for your reviewer:

Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

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

LGTM

@ritazh ritazh requested a review from a team February 1, 2023 15:15
@Fish-pro Fish-pro requested a review from ritazh February 8, 2023 02:05
@codecov-commenter
Copy link

codecov-commenter commented Feb 10, 2023

Codecov Report

Base: 53.52% // Head: 53.52% // No change to project coverage 👍

Coverage data is based on head (546cc29) compared to base (6b3dfad).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2554   +/-   ##
=======================================
  Coverage   53.52%   53.52%           
=======================================
  Files         120      120           
  Lines       10634    10634           
=======================================
  Hits         5692     5692           
  Misses       4507     4507           
  Partials      435      435           
Flag Coverage Δ
unittests 53.52% <0.00%> (ø)

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

Impacted Files Coverage Δ
pkg/metrics/registry/registry.go 58.69% <0.00%> (ø)
pkg/readiness/object_tracker.go 82.91% <0.00%> (-1.07%) ⬇️
...onstrainttemplate/constrainttemplate_controller.go 58.61% <0.00%> (+0.71%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Fish-pro
Copy link
Contributor Author

@sozercan Thanks for update branch,Do you need me to rebase?

Signed-off-by: Zechun Chen <zechun.chen@daocloud.io>
@sozercan sozercan merged commit 05638fd into open-policy-agent:master Feb 10, 2023
davis-haba pushed a commit to davis-haba/gatekeeper that referenced this pull request Mar 7, 2023
Signed-off-by: Zechun Chen <zechun.chen@daocloud.io>
davis-haba pushed a commit to davis-haba/gatekeeper that referenced this pull request Mar 8, 2023
Signed-off-by: Zechun Chen <zechun.chen@daocloud.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants