Skip to content

feat: add unconvert check for golang-lint#2554

Merged
sozercan merged 1 commit into
open-policy-agent:masterfrom
Fish-pro:chore/unconvert
Feb 10, 2023
Merged

feat: add unconvert check for golang-lint#2554
sozercan merged 1 commit into
open-policy-agent:masterfrom
Fish-pro:chore/unconvert

Conversation

@Fish-pro
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown

codecov-commenter commented Feb 10, 2023

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 53.52%. Comparing base (6b3dfad) to head (546cc29).
Report is 674 commits behind head on master.

Files with missing lines Patch % Lines
pkg/metrics/registry/registry.go 0.00% 1 Missing ⚠️
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.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Fish-pro
Copy link
Copy Markdown
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.

5 participants