lint-api-new-client

command
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Parses golang code looking for github.com/hashicorp/consul/api.NewClient() being used in non-test code. If it finds this, it will error. The purpose of this lint is that we actually want to use our internal github.com/hashicorp/consul-k8s/consul.NewClient() function because that adds the consul-k8s version as a header.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL