Preparing report...

Report for github.com/goodrain/rainbond

F    ... is for lots of things to Fix!    Found 129 issues across 906 files

Tweet

gofmt0%

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

An error occurred while running this test (AddError: could not parse "_repos/src/github.com/goodrain/rainbond/gateway/test/http/fatal error: runtime: out of memory:1::warning: file is not gofmted with -s (gofmt)" - strconv.Atoi: parsing " runtime": invalid syntax)


go_vet0%

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

An error occurred while running this test (signal: killed)


gocyclo89%

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.

    • rainbond/api/controller/app.go
    • Line 240: warning: cyclomatic complexity 18 of function (*AppStruct).ImportApp() is high (> 15) (gocyclo)
    • Line 91: warning: cyclomatic complexity 18 of function (*AppStruct).ImportID() is high (> 15) (gocyclo)
    • rainbond/worker/appm/f/function.go
    • Line 47: warning: cyclomatic complexity 32 of function ApplyOne() is high (> 15) (gocyclo)
    • Line 397: warning: cyclomatic complexity 18 of function UpgradeClaims() is high (> 15) (gocyclo)
    • Line 464: warning: cyclomatic complexity 17 of function UpgradeEndpoints() is high (> 15) (gocyclo)
    • rainbond/util/zip/reader.go
    • Line 287: warning: cyclomatic complexity 34 of function readDirectoryHeader() is high (> 15) (gocyclo)
    • Line 497: warning: cyclomatic complexity 17 of function readDirectoryEnd() is high (> 15) (gocyclo)
    • rainbond/gateway/store/store.go
    • Line 461: warning: cyclomatic complexity 43 of function (*k8sStore).ListVirtualService() is high (> 15) (gocyclo)
    • Line 153: warning: cyclomatic complexity 18 of function New() is high (> 15) (gocyclo)
    • Line 383: warning: cyclomatic complexity 18 of function (*k8sStore).ListPool() is high (> 15) (gocyclo)
    • rainbond/util/zip/writer.go
    • Line 90: warning: cyclomatic complexity 20 of function (*Writer).Close() is high (> 15) (gocyclo)
    • Line 269: warning: cyclomatic complexity 16 of function (*Writer).CreateHeader() is high (> 15) (gocyclo)
    • rainbond/worker/handle/manager.go
    • Line 386: warning: cyclomatic complexity 17 of function (*Manager).applyRuleExec() is high (> 15) (gocyclo)
    • Line 88: warning: cyclomatic complexity 16 of function (*Manager).AnalystToExec() is high (> 15) (gocyclo)
    • rainbond/builder/exector/groupapp_restore.go
    • Line 523: warning: cyclomatic complexity 43 of function (*BackupAPPRestore).restoreMetadata() is high (> 15) (gocyclo)
    • Line 183: warning: cyclomatic complexity 38 of function (*BackupAPPRestore).restoreVersionAndData() is high (> 15) (gocyclo)
    • Line 415: warning: cyclomatic complexity 28 of function (*BackupAPPRestore).modify() is high (> 15) (gocyclo)
    • Line 107: warning: cyclomatic complexity 17 of function (*BackupAPPRestore).Run() is high (> 15) (gocyclo)
    • rainbond/worker/appm/store/store.go
    • Line 476: warning: cyclomatic complexity 63 of function (*appRuntimeStore).OnAdd() is high (> 15) (gocyclo)
    • Line 684: warning: cyclomatic complexity 57 of function (*appRuntimeStore).OnDeletes() is high (> 15) (gocyclo)
    • Line 874: warning: cyclomatic complexity 30 of function (*appRuntimeStore).UpdateGetAppService() is high (> 15) (gocyclo)
    • Line 148: warning: cyclomatic complexity 21 of function NewStore() is high (> 15) (gocyclo)
    • Line 1129: warning: cyclomatic complexity 19 of function (*appRuntimeStore).podEventHandler() is high (> 15) (gocyclo)
    • rainbond/builder/parser/source_code.go
    • Line 80: warning: cyclomatic complexity 81 of function (*SourceCodeParse).Parse() is high (> 15) (gocyclo)
    • Line 526: warning: cyclomatic complexity 16 of function (*SourceCodeParse).parseDockerfileInfo() is high (> 15) (gocyclo)
    • rainbond/builder/parser/docker_run.go
    • Line 142: warning: cyclomatic complexity 25 of function (*DockerRunOrImageParse).ParseDockerun() is high (> 15) (gocyclo)
    • Line 71: warning: cyclomatic complexity 20 of function (*DockerRunOrImageParse).Parse() is high (> 15) (gocyclo)
    • rainbond/api/handler/service.go
    • Line 494: warning: cyclomatic complexity 52 of function (*ServiceAction).ServiceCreate() is high (> 15) (gocyclo)
    • Line 1444: warning: cyclomatic complexity 26 of function (*ServiceAction).VolumnVar() is high (> 15) (gocyclo)
    • Line 1201: warning: cyclomatic complexity 22 of function (*ServiceAction).PortOuter() is high (> 15) (gocyclo)
    • Line 763: warning: cyclomatic complexity 22 of function (*ServiceAction).ServiceUpdate() is high (> 15) (gocyclo)
    • Line 1329: warning: cyclomatic complexity 21 of function (*ServiceAction).PortInner() is high (> 15) (gocyclo)
    • Line 1109: warning: cyclomatic complexity 20 of function (*ServiceAction).PortVar() is high (> 15) (gocyclo)

golint0%

Golint is a linter for Go source code.

An error occurred while running this test (signal: killed)


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (signal: killed)