Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reduce cyclomatic complexity 33 in AWS provisioner #298

Open
dirien opened this issue Nov 24, 2021 · 0 comments
Open

fix: reduce cyclomatic complexity 33 in AWS provisioner #298

dirien opened this issue Nov 24, 2021 · 0 comments
Labels
cloud-provider enhancement New feature or request good first issue Good for newcomers

Comments

@dirien
Copy link
Owner

dirien commented Nov 24, 2021

The AWS provisioner has a function with a very high cyclomatic

pkg/cloud/aws/aws.go:115:1: cyclomatic complexity 33 of func `(*Aws).CreateServer` is high (> 30) (gocyclo)
func (a *Aws) CreateServer(args automation.ServerArgs) (*automation.RessourceResults, error) {

We should split the fn to reduce the complexity

@dirien dirien added enhancement New feature or request good first issue Good for newcomers cloud-provider labels Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cloud-provider enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant