From c4bbb646222c1f3033f5d74488b7c7a7458961bb Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Thu, 6 Aug 2020 20:42:20 -0500 Subject: [PATCH] Fix latent linter issues. Signed-off-by: Matt Moyer --- .golangci.yaml | 4 +++- kubernetes/1.19/api/apis/crdsplaceholder/register.go | 1 + kubernetes/1.19/api/apis/crdsplaceholder/v1alpha1/register.go | 1 + kubernetes/1.19/api/apis/placeholder/register.go | 1 + kubernetes/1.19/api/apis/placeholder/v1alpha1/register.go | 1 + 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index 475e94c8..2ad6c697 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -63,6 +63,8 @@ linters-settings: lines: 125 statements: 50 goheader: - template-path: hack/header.txt + template: |- + Copyright 2020 VMware, Inc. + SPDX-License-Identifier: Apache-2.0 goimports: local-prefixes: github.com/suzerain-io diff --git a/kubernetes/1.19/api/apis/crdsplaceholder/register.go b/kubernetes/1.19/api/apis/crdsplaceholder/register.go index 6d7b0ec7..4d5d31af 100644 --- a/kubernetes/1.19/api/apis/crdsplaceholder/register.go +++ b/kubernetes/1.19/api/apis/crdsplaceholder/register.go @@ -3,6 +3,7 @@ Copyright 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0 */ +//nolint:gochecknoglobals package crdsplaceholder import ( diff --git a/kubernetes/1.19/api/apis/crdsplaceholder/v1alpha1/register.go b/kubernetes/1.19/api/apis/crdsplaceholder/v1alpha1/register.go index 821ebcdd..f8fa00d1 100644 --- a/kubernetes/1.19/api/apis/crdsplaceholder/v1alpha1/register.go +++ b/kubernetes/1.19/api/apis/crdsplaceholder/v1alpha1/register.go @@ -3,6 +3,7 @@ Copyright 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0 */ +//nolint:gochecknoglobals,gochecknoinits package v1alpha1 import ( diff --git a/kubernetes/1.19/api/apis/placeholder/register.go b/kubernetes/1.19/api/apis/placeholder/register.go index 91670aad..87f4fff5 100644 --- a/kubernetes/1.19/api/apis/placeholder/register.go +++ b/kubernetes/1.19/api/apis/placeholder/register.go @@ -3,6 +3,7 @@ Copyright 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0 */ +//nolint:gochecknoglobals package placeholder import ( diff --git a/kubernetes/1.19/api/apis/placeholder/v1alpha1/register.go b/kubernetes/1.19/api/apis/placeholder/v1alpha1/register.go index 63efd9a1..a1199b1e 100644 --- a/kubernetes/1.19/api/apis/placeholder/v1alpha1/register.go +++ b/kubernetes/1.19/api/apis/placeholder/v1alpha1/register.go @@ -3,6 +3,7 @@ Copyright 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0 */ +//nolint:gochecknoglobals,gochecknoinits package v1alpha1 import (