Preparing report...

Report for github.com/alibaba/pouch

A+    Excellent!    Found 35 issues across 652 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo94%

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.

    • pouch/daemon/mgr/container.go
    • Line 341: warning: cyclomatic complexity 37 of function (*ContainerManager).Create() is high (> 15) (gocyclo)
    • Line 1176: warning: cyclomatic complexity 29 of function (*ContainerManager).Update() is high (> 15) (gocyclo)
    • Line 1297: warning: cyclomatic complexity 19 of function (*ContainerManager).Remove() is high (> 15) (gocyclo)
    • Line 1423: warning: cyclomatic complexity 19 of function (*ContainerManager).updateContainerResources() is high (> 15) (gocyclo)
    • pouch/daemon/mgr/container_storage.go
    • Line 115: warning: cyclomatic complexity 19 of function (*ContainerManager).getMountPointFromBinds() is high (> 15) (gocyclo)
    • Line 515: warning: cyclomatic complexity 18 of function (*ContainerManager).prepareQuotaMap() is high (> 15) (gocyclo)
    • pouch/daemon/mgr/image.go
    • Line 296: warning: cyclomatic complexity 23 of function (*ImageManager).ListImages() is high (> 15) (gocyclo)
    • Line 436: warning: cyclomatic complexity 20 of function (*ImageManager).RemoveImage() is high (> 15) (gocyclo)
    • pouch/cli/run.go
    • Line 63: warning: cyclomatic complexity 29 of function (*RunCommand).runRun() is high (> 15) (gocyclo)
    • pouch/main.go
    • Line 153: warning: cyclomatic complexity 23 of function runDaemon() is high (> 15) (gocyclo)
    • pouch/daemon/mgr/network.go
    • Line 640: warning: cyclomatic complexity 30 of function buildSandboxOptions() is high (> 15) (gocyclo)
    • Line 279: warning: cyclomatic complexity 20 of function (*NetworkManager).EndpointCreate() is high (> 15) (gocyclo)
    • pouch/cri/v1alpha2/cri.go
    • Line 220: warning: cyclomatic complexity 27 of function (*CriManager).RunPodSandbox() is high (> 15) (gocyclo)
    • Line 450: warning: cyclomatic complexity 17 of function (*CriManager).StopPodSandbox() is high (> 15) (gocyclo)
    • Line 367: warning: cyclomatic complexity 16 of function (*CriManager).StartPodSandbox() is high (> 15) (gocyclo)
    • pouch/cli/start.go
    • Line 60: warning: cyclomatic complexity 18 of function (*StartCommand).runStart() is high (> 15) (gocyclo)
    • pouch/ctrd/container.go
    • Line 101: warning: cyclomatic complexity 19 of function (*Client).execContainer() is high (> 15) (gocyclo)
    • Line 407: warning: cyclomatic complexity 16 of function (*Client).destroyContainer() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!