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

add importas to golangci-lint #2516

Merged
merged 2 commits into from
Aug 8, 2021

Conversation

tharun208
Copy link
Contributor

Summary

SUMMARY_GOES_HERE

Full changelog

  • Add importas rule to golangci-lint
  • fix import names

Issues resolved

Fix #2459

Documentation

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Backwards compatibility

  • Add backport-to-stable label if the code is backwards compatible. Otherwise, list breaking changes.

Signed-off-by: Tharun <rajendrantharun@live.com>
Signed-off-by: Tharun <rajendrantharun@live.com>
@tharun208 tharun208 requested a review from a team as a code owner August 7, 2021 04:55
@tharun208 tharun208 changed the title Chore/use importas golangci lint add importas to golangci-lint Aug 7, 2021
Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

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

Great, I love it! Thanks!

@codecov-commenter
Copy link

Codecov Report

Merging #2516 (e873bed) into master (d22deab) will increase coverage by 0.05%.
The diff coverage is 87.17%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2516      +/-   ##
==========================================
+ Coverage   52.14%   52.19%   +0.05%     
==========================================
  Files         866      866              
  Lines       48307    48307              
==========================================
+ Hits        25191    25216      +25     
+ Misses      21080    21046      -34     
- Partials     2036     2045       +9     
Impacted Files Coverage Δ
pkg/core/xds/types.go 89.65% <ø> (ø)
...plugins/runtime/k8s/controllers/mesh_controller.go 0.00% <0.00%> (ø)
pkg/plugins/runtime/k8s/plugin.go 1.15% <0.00%> (ø)
pkg/plugins/runtime/k8s/webhooks/mesh_validator.go 0.00% <0.00%> (ø)
pkg/xds/context/context.go 66.66% <ø> (ø)
...ds/envoy/clusters/v3/circuit_breaker_configurer.go 100.00% <ø> (ø)
...g/xds/envoy/clusters/v3/health_check_configurer.go 92.17% <0.00%> (ø)
.../envoy/clusters/v3/outlier_detection_configurer.go 100.00% <ø> (ø)
pkg/xds/ingress/outbound.go 0.00% <0.00%> (ø)
pkg/xds/sync/dataplane_watchdog.go 0.00% <0.00%> (ø)
... and 67 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d22deab...e873bed. Read the comment docs.

@jpeach jpeach merged commit 2e3ace0 into kumahq:master Aug 8, 2021
@tharun208 tharun208 deleted the chore/use-importas-golangci-lint branch August 9, 2021 00:35
mergify bot pushed a commit that referenced this pull request Aug 9, 2021
-  add importas rule
-  fix import names

Signed-off-by: Tharun <rajendrantharun@live.com>
(cherry picked from commit 2e3ace0)

# Conflicts:
#	.golangci.yml
#	app/kumactl/cmd/delete/delete_test.go
#	app/kumactl/pkg/output/json/json_test.go
#	app/kumactl/pkg/output/yaml/yaml_test.go
#	pkg/defaults/components_test.go
#	pkg/dns/vips/persistence.go
#	pkg/dns/vips/persistence_test.go
#	pkg/mads/v1/generator/assignments_test.go
#	pkg/mads/v1/reconcile/snapshot_generator_test.go
#	pkg/mads/v1alpha1/generator/assignments_test.go
#	pkg/mads/v1alpha1/reconcile/snapshot_generator_test.go
#	pkg/plugins/resources/k8s/native/api/v1alpha1/zone_ingress_types_helpers.go
#	pkg/plugins/runtime/k8s/webhooks/injector/injector.go
#	pkg/plugins/runtime/k8s/webhooks/mesh_validator.go
#	pkg/sds/server/v3/reconciler.go
#	pkg/xds/envoy/clusters/v3/client_side_tls_configurer_test.go
#	pkg/xds/envoy/clusters/v3/dns_cluster_configurer_test.go
#	pkg/xds/envoy/clusters/v3/eds_cluster_configurer_test.go
#	pkg/xds/envoy/clusters/v3/health_check_configurer.go
#	pkg/xds/envoy/clusters/v3/pass_through_cluster_configurer_test.go
#	pkg/xds/envoy/clusters/v3/static_cluster_configurer_test.go
#	pkg/xds/envoy/clusters/v3/strict_dns_cluster_configurer_test.go
#	pkg/xds/envoy/listeners/v3/max_connect_attempts_configurer_test.go
#	pkg/xds/envoy/listeners/v3/network_rbac_configurer_test.go
#	pkg/xds/envoy/listeners/v3/retry_configurer_test.go
#	pkg/xds/generator/inbound_proxy_generator.go
#	pkg/xds/generator/outbound_proxy_generator.go
#	pkg/xds/generator/prometheus_endpoint_generator_test.go
#	pkg/xds/generator/protocol_test.go
#	pkg/xds/generator/tracing_generator_test.go
#	pkg/xds/sync/dataplane_watchdog.go
#	pkg/xds/topology/outbound_test.go
jpeach pushed a commit that referenced this pull request Aug 11, 2021
-  add importas rule
-  fix import names

Signed-off-by: Tharun <rajendrantharun@live.com>
(cherry picked from commit 2e3ace0)
jpeach pushed a commit that referenced this pull request Aug 11, 2021
-  add importas rule
-  fix import names

Signed-off-by: Tharun Rajendran <rajendrantharun@live.com>
(cherry picked from commit 2e3ace0)
jpeach pushed a commit that referenced this pull request Aug 11, 2021
-  add importas rule
-  fix import names

Signed-off-by: Tharun Rajendran <rajendrantharun@live.com>
(cherry picked from commit 2e3ace0)

Co-authored-by: Tharun Rajendran <rajendrantharun@live.com>
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.

Enable importas linter
3 participants