-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
None
-
None
-
3
-
False
-
None
-
False
-
-
-
3
-
Sprint 237, Sprint 236, Sprint 238
When making a change to the uninstaller for GCP, the linter picked up an error:
pkg/destroy/gcp/gcp.go:42:2: found a struct that contains a context.Context field (containedctx) Context context.Context
Contexts should not be added to structs. Instead the context should be created at the top level of the uninstaller OR a separate context can be used for each stage of the uninstallation process.
Currently this error can be bypassed by adding:
//nolint:containedctx
to the offending line