Skip to content

Commit

Permalink
add contextcheck linter exceptions
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
  • Loading branch information
inteon committed May 8, 2024
1 parent 51cba40 commit f5cda43
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/approve/approve.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func NewCmdApprove(setupCtx context.Context, ioStreams genericclioptions.IOStrea
PreRunE: func(cmd *cobra.Command, args []string) error {
return o.Validate(args)
},
// nolint:contextcheck // False positive
RunE: func(cmd *cobra.Command, args []string) error {
return o.Run(cmd.Context(), args)
},
Expand Down
1 change: 1 addition & 0 deletions pkg/check/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func NewCmdCheckApi(setupCtx context.Context, ioStreams genericclioptions.IOStre
PreRunE: func(cmd *cobra.Command, args []string) error {
return o.Complete()
},
// nolint:contextcheck // False positive
RunE: func(cmd *cobra.Command, args []string) error {
return o.Run(cmd.Context())
},
Expand Down
1 change: 1 addition & 0 deletions pkg/create/certificaterequest/certificaterequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func NewCmdCreateCR(setupCtx context.Context, ioStreams genericclioptions.IOStre
PreRunE: func(cmd *cobra.Command, args []string) error {
return o.Validate(args)
},
// nolint:contextcheck // False positive
RunE: func(cmd *cobra.Command, args []string) error {
return o.Run(cmd.Context(), args)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func NewCmdCreateCSR(setupCtx context.Context, ioStreams genericclioptions.IOStr
PreRunE: func(cmd *cobra.Command, args []string) error {
return o.Validate(args)
},
// nolint:contextcheck // False positive
RunE: func(cmd *cobra.Command, args []string) error {
return o.Run(cmd.Context(), args)
},
Expand Down
1 change: 1 addition & 0 deletions pkg/deny/deny.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func NewCmdDeny(setupCtx context.Context, ioStreams genericclioptions.IOStreams)
PreRunE: func(cmd *cobra.Command, args []string) error {
return o.Validate(args)
},
// nolint:contextcheck // False positive
RunE: func(cmd *cobra.Command, args []string) error {
return o.Run(cmd.Context(), args)
},
Expand Down
1 change: 1 addition & 0 deletions pkg/inspect/secret/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func NewCmdInspectSecret(setupCtx context.Context, ioStreams genericclioptions.I
PreRunE: func(cmd *cobra.Command, args []string) error {
return o.Validate(args)
},
// nolint:contextcheck // False positive
RunE: func(cmd *cobra.Command, args []string) error {
return o.Run(cmd.Context(), args, ioStreams.Out)
},
Expand Down
1 change: 1 addition & 0 deletions pkg/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func NewCmdInstall(setupCtx context.Context, ioStreams genericclioptions.IOStrea
Use: "install",
Short: "Install cert-manager",
Long: installDesc(),
// nolint:contextcheck // False positive
RunE: func(cmd *cobra.Command, args []string) error {
options.client.Namespace = settings.Namespace()

Expand Down
1 change: 1 addition & 0 deletions pkg/renew/renew.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func NewCmdRenew(setupCtx context.Context, ioStreams genericclioptions.IOStreams
PreRunE: func(cmd *cobra.Command, args []string) error {
return o.Validate(cmd, args)
},
// nolint:contextcheck // False positive
RunE: func(cmd *cobra.Command, args []string) error {
return o.Run(cmd.Context(), args)
},
Expand Down
1 change: 1 addition & 0 deletions pkg/status/certificate/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func NewCmdStatusCert(setupCtx context.Context, ioStreams genericclioptions.IOSt
PreRunE: func(cmd *cobra.Command, args []string) error {
return o.Validate(args)
},
// nolint:contextcheck // False positive
RunE: func(cmd *cobra.Command, args []string) error {
return o.Run(cmd.Context(), args)
},
Expand Down
1 change: 1 addition & 0 deletions pkg/uninstall/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func NewCmd(setupCtx context.Context, ioStreams genericclioptions.IOStreams) *co
Use: "uninstall",
Short: "Uninstall cert-manager",
Long: description(),
// nolint:contextcheck // False positive
RunE: func(cmd *cobra.Command, args []string) error {
res, err := run(cmd.Context(), options)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions pkg/upgrade/migrateapiversion/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func NewCmdMigrate(setupCtx context.Context, ioStreams genericclioptions.IOStrea

return o.Complete()
},
// nolint:contextcheck // False positive
RunE: func(cmd *cobra.Command, args []string) error {
return o.Run(cmd.Context(), args)
},
Expand Down
1 change: 1 addition & 0 deletions pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func NewCmdVersion(setupCtx context.Context, ioStreams genericclioptions.IOStrea

return o.Complete()
},
// nolint:contextcheck // False positive
RunE: func(cmd *cobra.Command, args []string) error {
return o.Run(cmd.Context())
},
Expand Down

0 comments on commit f5cda43

Please sign in to comment.