mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 09:51:23 +00:00
Fix pluginator incompatibility with nolint lines
This commit is contained in:
@@ -21,9 +21,7 @@ type plugin struct {
|
||||
t resmap.Transformer
|
||||
}
|
||||
|
||||
//nolint: golint
|
||||
//noinspection GoUnusedGlobalVariable
|
||||
var KustomizePlugin plugin
|
||||
var KustomizePlugin plugin //nolint:gochecknoglobals
|
||||
|
||||
func (p *plugin) makePrefixPluginConfig() ([]byte, error) {
|
||||
var s struct {
|
||||
@@ -55,7 +53,9 @@ func (p *plugin) Config(h *resmap.PluginHelpers, _ []byte) error {
|
||||
}
|
||||
|
||||
// Returns a constant, rather than
|
||||
// time.Now().Format("2006-01-02")
|
||||
//
|
||||
// time.Now().Format("2006-01-02")
|
||||
//
|
||||
// to make tests happy.
|
||||
// This is just an example.
|
||||
func getDate() string {
|
||||
|
||||
Reference in New Issue
Block a user