Preparing report...

Report for github.com/stevenayers/netkat

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


golint33%

Golint is a linter for Go source code.

    • netkat/check.go
    • Line 17: warning: exported type Checker should have comment or be unexported (golint)
    • Line 27: warning: exported type Check should have comment or be unexported (golint)
    • Line 32: warning: exported type KubernetesRoute should have comment or be unexported (golint)
    • Line 38: warning: exported type Target should have comment or be unexported (golint)
    • Line 54: warning: exported method Checker.ParseTarget should have comment or be unexported (golint)
    • Line 107: warning: exported method Checker.RunChecks should have comment or be unexported (golint)
    • Line 115: warning: exported method Checker.InitChecks should have comment or be unexported (golint)
    • Line 122: warning: exported method Checker.PassCheck should have comment or be unexported (golint)
    • Line 135: warning: exported method Checker.FailCheck should have comment or be unexported (golint)
    • Line 148: warning: exported method Checker.CheckKubernetesRouteFromHost should have comment or be unexported (golint)
    • Line 198: warning: exported method Checker.CheckStatusPod should have comment or be unexported (golint)
    • Line 216: warning: exported method Checker.CheckListeningPod should have comment or be unexported (golint)
    • netkat/client.go
    • Line 12: warning: exported type Client should have comment or be unexported (golint)
    • Line 18: warning: exported function InitClient should have comment or be unexported (golint)
    • netkat/kubernetes.go
    • Line 21: warning: exported type PodPort should have comment or be unexported (golint)
    • Line 36: warning: exported type ServicePort should have comment or be unexported (golint)
    • Line 54: warning: exported type IngressPath should have comment or be unexported (golint)
    • Line 66: warning: exported type KubernetesComponents should have comment or be unexported (golint)
    • Line 73: warning: exported method KubernetesComponents.FindIngressPathForHost should have comment or be unexported (golint)
    • Line 91: warning: exported method KubernetesComponents.FindServicePortForHost should have comment or be unexported (golint)
    • Line 109: warning: exported method KubernetesComponents.FindServicePortForIngressPath should have comment or be unexported (golint)
    • Line 127: warning: exported method KubernetesComponents.FindPodPortForServicePort should have comment or be unexported (golint)
    • Line 139: warning: exported method KubernetesComponents.FindPodPort should have comment or be unexported (golint)
    • Line 150: warning: exported method KubernetesComponents.FindServicePortForPodPort should have comment or be unexported (golint)
    • Line 168: warning: exported method KubernetesComponents.FindIngressPathForServicePort should have comment or be unexported (golint)
    • Line 186: warning: exported method Client.GetComponents should have comment or be unexported (golint)
    • Line 198: warning: exported method Client.GetPods should have comment or be unexported (golint)
    • Line 206: warning: exported function PodsToPodPorts should have comment or be unexported (golint)
    • Line 236: warning: exported method Client.GetServices should have comment or be unexported (golint)
    • Line 244: warning: exported function ServicesToServicePorts should have comment or be unexported (golint)
    • Line 290: warning: exported method Client.GetIngresses should have comment or be unexported (golint)
    • Line 298: warning: exported function IngressesToIngressPaths should have comment or be unexported (golint)
    • Line 321: warning: exported method Client.IsPodListening should have comment or be unexported (golint)
    • netkat/logging.go
    • Line 9: warning: exported var Logger should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function InitLogger should be of the form "InitLogger ..." (golint)
    • netkat/print.go
    • Line 9: warning: exported function PrintCheckHeader should have comment or be unexported (golint)
    • Line 21: warning: exported function PrintCheckResults should have comment or be unexported (golint)
    • Line 38: warning: exported function PrintHost should have comment or be unexported (golint)
    • Line 46: warning: exported function PrintIngressPath should have comment or be unexported (golint)
    • Line 53: warning: exported function PrintServicePort should have comment or be unexported (golint)
    • Line 80: warning: exported function PrintPodPort 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!