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

chore: enable importas for lint #3603

Merged
merged 3 commits into from
Jun 14, 2024
Merged

Conversation

shawnh2
Copy link
Contributor

@shawnh2 shawnh2 commented Jun 13, 2024

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

@shawnh2 shawnh2 requested a review from a team as a code owner June 13, 2024 05:50
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 65.07353% with 95 lines in your changes missing coverage. Please review.

Project coverage is 68.20%. Comparing base (845a5ec) to head (3c8786c).

Files Patch % Lines
internal/gatewayapi/status/policy.go 0.00% 11 Missing ⚠️
internal/provider/kubernetes/status.go 52.17% 11 Missing ⚠️
internal/cmd/egctl/status.go 0.00% 8 Missing ⚠️
internal/extension/registry/extension_manager.go 11.11% 8 Missing ⚠️
internal/provider/kubernetes/indexers.go 75.00% 2 Missing and 4 partials ⚠️
internal/gatewayapi/resource.go 60.00% 4 Missing ⚠️
internal/gatewayapi/status/envoypatchpolicy.go 0.00% 4 Missing ⚠️
internal/gatewayapi/validate.go 71.42% 3 Missing and 1 partial ⚠️
internal/provider/kubernetes/controller.go 33.33% 3 Missing and 1 partial ⚠️
internal/gatewayapi/runner/runner.go 40.00% 3 Missing ⚠️
... and 20 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3603      +/-   ##
==========================================
+ Coverage   68.17%   68.20%   +0.03%     
==========================================
  Files         168      168              
  Lines       20484    20484              
==========================================
+ Hits        13964    13971       +7     
+ Misses       5511     5507       -4     
+ Partials     1009     1006       -3     

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

alias: apiextensionsv1
- pkg: sigs.k8s.io/mcs-api/pkg/apis/v1alpha1
alias: mcsapiv1a1
- pkg: k8s.io/api/(\w+)/(v[\w\d]+)
Copy link
Contributor

Choose a reason for hiding this comment

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

what's this extra one

Copy link
Contributor Author

@shawnh2 shawnh2 Jun 14, 2024

Choose a reason for hiding this comment

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

match in regexp, like matching k8s.io/api/policy/v1, the alias will be policyv1. same for k8s.io/api/core/v1 etc

Copy link
Contributor

Choose a reason for hiding this comment

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

ah cool

Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks !

@shawnh2 shawnh2 requested review from a team June 14, 2024 14:44
@arkodg arkodg merged commit 28e1a48 into envoyproxy:main Jun 14, 2024
23 checks passed
@shawnh2 shawnh2 deleted the enable-linter-importas branch June 15, 2024 05:38
@arkodg arkodg mentioned this pull request Aug 15, 2024
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.

3 participants