Preparing report...

Report for github.com/terraform-providers/terraform-provider-scaleway

(v1.16.0)

A+    Excellent!    Found 9 issues across 113 files

Tweet

go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gofmt98%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo95%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • scaleway/resource_k8s_cluster_beta.go
    • Line 807: warning: cyclomatic complexity 33 of function resourceScalewayK8SClusterBetaUpdate() is high (> 15) (gocyclo)
    • Line 342: warning: cyclomatic complexity 32 of function resourceScalewayK8SClusterBetaCreate() is high (> 15) (gocyclo)
    • Line 687: warning: cyclomatic complexity 25 of function resourceScalewayK8SClusterBetaDefaultPoolUpdate() is high (> 15) (gocyclo)
    • scaleway/resource_instance_server.go
    • Line 468: warning: cyclomatic complexity 31 of function resourceScalewayInstanceServerUpdate() is high (> 15) (gocyclo)
    • Line 332: warning: cyclomatic complexity 23 of function resourceScalewayInstanceServerRead() is high (> 15) (gocyclo)
    • Line 222: warning: cyclomatic complexity 17 of function resourceScalewayInstanceServerCreate() is high (> 15) (gocyclo)
    • scaleway/resource_server.go
    • Line 315: warning: cyclomatic complexity 21 of function resourceScalewayServerUpdate() is high (> 15) (gocyclo)
    • Line 167: warning: cyclomatic complexity 20 of function resourceScalewayServerCreate() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words