From f91dcd171edd1022ace6fcddc3f5d827a0015450 Mon Sep 17 00:00:00 2001 From: David Laubreiter Date: Fri, 17 Mar 2023 10:58:23 +0100 Subject: [PATCH] refactor: Ignore toEnvironments cognitive complexity After a pair-review session, we decide that it adds more complexity to the function than refactoring it to reduce the cognitive complexity from 26 to 25. --- pkg/manifest/manifest_loader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/manifest/manifest_loader.go b/pkg/manifest/manifest_loader.go index bbf7c9c66..b9ea83da6 100644 --- a/pkg/manifest/manifest_loader.go +++ b/pkg/manifest/manifest_loader.go @@ -298,7 +298,7 @@ func validateManifestVersion(manifestVersion string) error { return nil } -func toEnvironments(context *ManifestLoaderContext, groups []group) (map[string]EnvironmentDefinition, []error) { +func toEnvironments(context *ManifestLoaderContext, groups []group) (map[string]EnvironmentDefinition, []error) { // nolint:gocognit var errors []error environments := make(map[string]EnvironmentDefinition)