Preparing report...

Report for github.com/nirmata/kube-netc

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


golint53%

Golint is a linter for Go source code.

    • kube-netc/pkg/tracker/tracker.go
    • Line 15: warning: exported const MaxConnBuffer should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported type Tracker should have comment or be unexported (golint)
    • Line 41: warning: exported type ConnData should have comment or be unexported (golint)
    • Line 50: warning: comment on exported type NodeUpdate should be of the form "NodeUpdate ..." (with optional leading article) (golint)
    • Line 56: warning: comment on exported type ConnUpdate should be of the form "ConnUpdate ..." (with optional leading article) (golint)
    • Line 62: warning: exported type ConnectionID should have comment or be unexported (golint)
    • Line 69: warning: exported var DefaultTracker should have comment or be unexported (golint)
    • Line 96: warning: exported function NewTracker should have comment or be unexported (golint)
    • Line 102: warning: exported method Tracker.StartTracker should have comment or be unexported (golint)
    • Line 235: warning: exported method Tracker.Stop should have comment or be unexported (golint)
    • kube-netc/pkg/tracker/util.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 8: warning: exported function IPPort should have comment or be unexported (golint)
    • Line 16: warning: exported function Now should have comment or be unexported (golint)
    • kube-netc/pkg/cluster/cluster.go
    • Line 23: warning: exported type ObjectInfo should have comment or be unexported (golint)
    • Line 38: warning: exported type ClusterInfo should have comment or be unexported (golint)
    • Line 44: warning: exported method ClusterInfo.Set should have comment or be unexported (golint)
    • Line 44: warning: receiver name ci should be consistent with previous receiver name c for ClusterInfo (golint)
    • Line 50: warning: exported method ClusterInfo.Get should have comment or be unexported (golint)
    • Line 50: warning: receiver name ci should be consistent with previous receiver name c for ClusterInfo (golint)
    • Line 57: warning: exported function NewClusterInfo should have comment or be unexported (golint)
    • Line 67: warning: exported method ClusterInfo.Run 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!