Skip to content

Commit

Permalink
refactor: Ignore toEnvironments cognitive complexity
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Laubi committed Mar 20, 2023
1 parent 633c0e6 commit f91dcd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manifest/manifest_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f91dcd1

Please sign in to comment.