minectl icon indicating copy to clipboard operation
minectl copied to clipboard

fix: reduce cyclomatic complexity 34 in VEXXHOST provisioner

Open dirien opened this issue 4 years ago • 0 comments

The VEXXHOST provisioner has a function with a very high cyclomatic

pkg/cloud/vexxhost/vexxhost.go:96:1: cyclomatic complexity 34 of func `(*VEXXHOST).CreateServer` is high (> 30) (gocyclo)
func (v *VEXXHOST) CreateServer(args automation.ServerArgs) (*automation.RessourceResults, error) {

We should split the fn to reduce the complexity

dirien avatar Nov 24 '21 19:11 dirien