Preparing report...

Report for github.com/softiron/manifold-api

(v0.26.0)

A+    Excellent!    Found 7 issues across 176 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!


gofmt100%

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

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo96%

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.

    • cloud/instance/template.go
    • Line 13: warning: cyclomatic complexity 71 of function ParseTemplate() is high (> 15) (gocyclo)
    • Line 294: warning: cyclomatic complexity 43 of function newInstanceDisk() is high (> 15) (gocyclo)
    • deprecated/v2/cloud/payloads.go
    • Line 372: warning: cyclomatic complexity 68 of function (Template).Template() is high (> 15) (gocyclo)
    • Line 646: warning: cyclomatic complexity 45 of function newInstanceDisk() is high (> 15) (gocyclo)
    • Line 767: warning: cyclomatic complexity 16 of function newInstanceNIC() is high (> 15) (gocyclo)
    • cloud/host.go
    • Line 151: warning: cyclomatic complexity 28 of function (*Host).ParseTemplate() is high (> 15) (gocyclo)
    • deprecated/v2/snapshot/schedule.go
    • Line 154: warning: cyclomatic complexity 19 of function (Schedule).IsTime() is high (> 15) (gocyclo)
    • Line 933: warning: cyclomatic complexity 17 of function (*Schedule).setYearly() is high (> 15) (gocyclo)
    • Line 253: warning: cyclomatic complexity 17 of function (Schedule).String() is high (> 15) (gocyclo)
    • Line 129: warning: cyclomatic complexity 16 of function (Schedule).Matches() is high (> 15) (gocyclo)
    • snapshot/schedule.go
    • Line 154: warning: cyclomatic complexity 19 of function (Schedule).IsTime() is high (> 15) (gocyclo)
    • Line 253: warning: cyclomatic complexity 17 of function (Schedule).String() is high (> 15) (gocyclo)
    • Line 933: warning: cyclomatic complexity 17 of function (*Schedule).setYearly() is high (> 15) (gocyclo)
    • Line 129: warning: cyclomatic complexity 16 of function (Schedule).Matches() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!