From 174a937fdf7a054fed5f1e0894c22e7e00c4959d Mon Sep 17 00:00:00 2001 From: Bevan Arps Date: Thu, 26 Nov 2020 14:42:11 +1300 Subject: [PATCH] Update format of //nolint suppression comments --- hack/generated/pkg/testcommon/resource_namer.go | 2 +- hack/generator/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/generated/pkg/testcommon/resource_namer.go b/hack/generated/pkg/testcommon/resource_namer.go index 1e2a8a334..7efbfb36c 100644 --- a/hack/generated/pkg/testcommon/resource_namer.go +++ b/hack/generated/pkg/testcommon/resource_namer.go @@ -35,7 +35,7 @@ func (rnc ResourceNameConfig) NewResourceNamer(testName string) ResourceNamer { seed := hasher.Sum64() return ResourceNamer{ ResourceNameConfig: rnc, - // nolint: do not want cryptographic randomness here + //nolint:gosec // do not want cryptographic randomness here rand: rand.New(rand.NewSource(int64(seed))), } } diff --git a/hack/generator/main.go b/hack/generator/main.go index eb79794cf..5e7835118 100644 --- a/hack/generator/main.go +++ b/hack/generator/main.go @@ -18,7 +18,7 @@ import ( func main() { flagSet := goflag.NewFlagSet(os.Args[0], goflag.ExitOnError) klog.InitFlags(flagSet) - flagSet.Parse(os.Args[1:]) //nolint: error will never be returned due to ExitOnError + flagSet.Parse(os.Args[1:]) //nolint:errcheck // error will never be returned due to ExitOnError flag.CommandLine.AddGoFlagSet(flagSet) cmd.Execute() }