Preparing report...

Report for github.com/containers/podman-tui

(v1.4.0)

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo90%

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.

    • ui/networks/key.go
    • Line 11: warning: cyclomatic complexity 21 of function (*Networks).InputHandler() is high (> 15) (gocyclo)
    • ui/pods/key.go
    • Line 11: warning: cyclomatic complexity 21 of function (*Pods).InputHandler() is high (> 15) (gocyclo)
    • ui/images/imgdialogs/build.go
    • Line 1228: warning: cyclomatic complexity 41 of function (*ImageBuildDialog).ImageBuildOptions() is high (> 15) (gocyclo)
    • Line 635: warning: cyclomatic complexity 40 of function (*ImageBuildDialog).Focus() is high (> 15) (gocyclo)
    • Line 753: warning: cyclomatic complexity 36 of function (*ImageBuildDialog).InputHandler() is high (> 15) (gocyclo)
    • config/add.go
    • Line 52: warning: cyclomatic complexity 23 of function validateNewService() is high (> 15) (gocyclo)
    • ui/system/key.go
    • Line 11: warning: cyclomatic complexity 22 of function (*System).InputHandler() is high (> 15) (gocyclo)
    • ui/secrets/key.go
    • Line 11: warning: cyclomatic complexity 17 of function (*Secrets).InputHandler() is high (> 15) (gocyclo)
    • app/app.go
    • Line 126: warning: cyclomatic complexity 16 of function (*App).Run() is high (> 15) (gocyclo)
    • ui/containers/cntdialogs/create.go
    • Line 938: warning: cyclomatic complexity 58 of function (*ContainerCreateDialog).Focus() is high (> 15) (gocyclo)
    • Line 1130: warning: cyclomatic complexity 36 of function (*ContainerCreateDialog).InputHandler() is high (> 15) (gocyclo)
    • Line 1773: warning: cyclomatic complexity 29 of function (*ContainerCreateDialog).ContainerCreateOptions() is high (> 15) (gocyclo)
    • ui/pods/poddialogs/create.go
    • Line 448: warning: cyclomatic complexity 26 of function (*PodCreateDialog).Focus() is high (> 15) (gocyclo)
    • Line 903: warning: cyclomatic complexity 24 of function (*PodCreateDialog).GetPodSpec() is high (> 15) (gocyclo)
    • Line 549: warning: cyclomatic complexity 24 of function (*PodCreateDialog).InputHandler() is high (> 15) (gocyclo)
    • ui/images/key.go
    • Line 11: warning: cyclomatic complexity 33 of function (*Images).InputHandler() is high (> 15) (gocyclo)
    • ui/containers/cntdialogs/exec.go
    • Line 284: warning: cyclomatic complexity 23 of function (*ContainerExecDialog).Focus() is high (> 15) (gocyclo)
    • Line 471: warning: cyclomatic complexity 22 of function (*ContainerExecDialog).InputHandler() 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!