Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Update format of //nolint suppression comments (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
theunrepentantgeek committed Nov 26, 2020
1 parent 1c684b6 commit 316d6f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hack/generated/pkg/testcommon/resource_namer.go
Expand Up @@ -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))),
}
}
Expand Down
2 changes: 1 addition & 1 deletion hack/generator/main.go
Expand Up @@ -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()
}

0 comments on commit 316d6f9

Please sign in to comment.