Preparing report...

Report for github.com/vs4vijay/lazykubectl

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


gocyclo100%

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.

No problems detected. Good job!


golint16%

Golint is a linter for Go source code.

    • lazykubectl/pkg/tui/tui.go
    • Line 14: warning: exported var ViewInfo should have comment or be unexported (golint)
    • Line 28: warning: exported type App should have comment or be unexported (golint)
    • Line 33: warning: exported function NewApp should have comment or be unexported (golint)
    • Line 40: warning: exported method App.Start should have comment or be unexported (golint)
    • lazykubectl/pkg/k8s/k8s.go
    • Line 18: warning: exported var ErrNoClusterConnectivity should have comment or be unexported (golint)
    • Line 21: warning: exported type KubeAPI should have comment or be unexported (golint)
    • Line 26: warning: exported function NewKubeAPI should have comment or be unexported (golint)
    • Line 56: warning: exported function BuildConfig should have comment or be unexported (golint)
    • Line 77: warning: exported method KubeAPI.GetInfo should have comment or be unexported (golint)
    • Line 94: warning: exported method KubeAPI.GetNamespaces should have comment or be unexported (golint)
    • Line 102: warning: exported method KubeAPI.DeleteNamespaces should have comment or be unexported (golint)
    • Line 110: warning: exported method KubeAPI.WatchNamespaces should have comment or be unexported (golint)
    • Line 118: warning: exported method KubeAPI.GetNodes should have comment or be unexported (golint)
    • Line 126: warning: exported method KubeAPI.GetPods should have comment or be unexported (golint)
    • Line 138: warning: exported method KubeAPI.GetServices should have comment or be unexported (golint)
    • Line 150: warning: exported method KubeAPI.GetContainers should have comment or be unexported (golint)
    • Line 162: warning: exported method KubeAPI.GetContainerLogs should have comment or be unexported (golint)
    • Line 184: warning: exported method KubeAPI.WatchPodLogs should have comment or be unexported (golint)
    • Line 199: warning: exported method KubeAPI.GetDeployments should have comment or be unexported (golint)
    • Line 212: warning: exported method KubeAPI.GetEvents should have comment or be unexported (golint)
    • Line 220: warning: exported method KubeAPI.WatchEvents should have comment or be unexported (golint)
    • Line 228: warning: exported method KubeAPI.GetSecrets should have comment or be unexported (golint)
    • Line 236: warning: exported method KubeAPI.CreateSecret should have comment or be unexported (golint)
    • Line 241: warning: exported method KubeAPI.DeleteSecret should have comment or be unexported (golint)
    • Line 246: warning: exported method KubeAPI.DryRun should have comment or be unexported (golint)

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!