Preparing report...

Report for github.com/cloud-barista/cb-tumblebug

(v0.7.3)

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


gofmt96%

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!


gocyclo84%

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.

    • src/core/mcir/spec.go
    • Line 759: warning: cyclomatic complexity 58 of function FilterSpecsByRange() is high (> 15) (gocyclo)
    • Line 1040: warning: cyclomatic complexity 41 of function SortSpecs() is high (> 15) (gocyclo)
    • Line 586: warning: cyclomatic complexity 36 of function FilterSpecs() is high (> 15) (gocyclo)
    • src/core/mcis/utility.go
    • Line 364: warning: cyclomatic complexity 57 of function InspectResources() is high (> 15) (gocyclo)
    • Line 955: warning: cyclomatic complexity 22 of function RegisterCspNativeResources() is high (> 15) (gocyclo)
    • src/core/mcis/control.go
    • Line 357: warning: cyclomatic complexity 28 of function ControlVmAsync() is high (> 15) (gocyclo)
    • Line 58: warning: cyclomatic complexity 22 of function HandleMcisAction() is high (> 15) (gocyclo)
    • Line 606: warning: cyclomatic complexity 21 of function ControlVm() is high (> 15) (gocyclo)
    • src/core/mcir/common.go
    • Line 825: warning: cyclomatic complexity 63 of function ListResource() is high (> 15) (gocyclo)
    • Line 125: warning: cyclomatic complexity 52 of function DelResource() is high (> 15) (gocyclo)
    • Line 535: warning: cyclomatic complexity 29 of function DelChildResource() is high (> 15) (gocyclo)
    • Line 1266: warning: cyclomatic complexity 27 of function GetResource() is high (> 15) (gocyclo)
    • Line 1623: warning: cyclomatic complexity 22 of function LoadCommonResource() is high (> 15) (gocyclo)
    • Line 1857: warning: cyclomatic complexity 20 of function LoadDefaultResource() is high (> 15) (gocyclo)
    • Line 1160: warning: cyclomatic complexity 16 of function UpdateAssociatedObjectList() is high (> 15) (gocyclo)
    • src/core/mcis/provisioning.go
    • Line 1568: warning: cyclomatic complexity 56 of function CreateVm() is high (> 15) (gocyclo)
    • Line 903: warning: cyclomatic complexity 29 of function CreateMcis() is high (> 15) (gocyclo)
    • Line 652: warning: cyclomatic complexity 28 of function CreateMcisGroupVm() is high (> 15) (gocyclo)
    • Line 1356: warning: cyclomatic complexity 17 of function getVmReqFromDynamicReq() is high (> 15) (gocyclo)
    • src/core/mcis/manageInfo.go
    • Line 1176: warning: cyclomatic complexity 49 of function GetVmStatus() is high (> 15) (gocyclo)
    • Line 1812: warning: cyclomatic complexity 33 of function DelMcis() is high (> 15) (gocyclo)
    • Line 720: warning: cyclomatic complexity 30 of function GetMcisStatus() is high (> 15) (gocyclo)
    • Line 1575: warning: cyclomatic complexity 20 of function AttachDetachDataDisk() is high (> 15) (gocyclo)
    • Line 423: warning: cyclomatic complexity 16 of function CoreGetAllMcis() is high (> 15) (gocyclo)
    • src/core/mcis/nlb.go
    • Line 392: warning: cyclomatic complexity 41 of function CreateNLB() is high (> 15) (gocyclo)
    • Line 1628: warning: cyclomatic complexity 18 of function RemoveNLBVMs() is high (> 15) (gocyclo)
    • Line 1189: warning: cyclomatic complexity 17 of function GetNLBHealth() is high (> 15) (gocyclo)
    • Line 1374: warning: cyclomatic complexity 17 of function AddNLBVMs() is high (> 15) (gocyclo)
    • src/core/mcis/benchmark.go
    • Line 205: warning: cyclomatic complexity 33 of function RunAllBenchmarks() is high (> 15) (gocyclo)
    • Line 413: warning: cyclomatic complexity 21 of function RunLatencyBenchmark() is high (> 15) (gocyclo)
    • src/core/mcis/recommendation.go
    • Line 78: warning: cyclomatic complexity 34 of function RecommendVm() is high (> 15) (gocyclo)
    • Line 300: warning: cyclomatic complexity 25 of function RecommendVmLocation() is high (> 15) (gocyclo)
    • src/core/mcir/firewallrule.go
    • Line 212: warning: cyclomatic complexity 25 of function DeleteFirewallRules() is high (> 15) (gocyclo)
    • Line 31: warning: cyclomatic complexity 20 of function CreateFirewallRules() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words