Preparing report...

Report for github.com/deluan/bring

A+    Excellent!    Found 8 issues across 25 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!


gocyclo96%

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.


golint72%

Golint is a linter for Go source code.

    • bring/log.go
    • Line 15: warning: comment on exported type DefaultLogger should be of the form "DefaultLogger ..." (with optional leading article) (golint)
    • Line 20: warning: exported method DefaultLogger.Tracef should have comment or be unexported (golint)
    • Line 26: warning: exported method DefaultLogger.Debugf should have comment or be unexported (golint)
    • Line 32: warning: exported method DefaultLogger.Infof should have comment or be unexported (golint)
    • Line 38: warning: exported method DefaultLogger.Warnf should have comment or be unexported (golint)
    • Line 44: warning: exported method DefaultLogger.Errorf should have comment or be unexported (golint)
    • bring/session.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: exported type SessionState should have comment or be unexported (golint)
    • Line 17: warning: exported const SessionClosed should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported var ErrNotConnected should have comment or be unexported (golint)
    • bring/protocol/instruction.go
    • Line 20: warning: exported type Instruction should have comment or be unexported (golint)
    • Line 25: warning: exported function NewInstruction should have comment or be unexported (golint)
    • bring/protocol/tunnel.go
    • Line 10: warning: exported type TunnelState should have comment or be unexported (golint)
    • Line 18: warning: exported var ErrNotConnected should have comment or be unexported (golint)
    • Line 20: warning: exported type Tunnel should have comment or be unexported (golint)
    • Line 40: warning: comment on exported type InetSocketTunnel should be of the form "InetSocketTunnel ..." (with optional leading article) (golint)
    • Line 50: warning: exported function NewInetSocketTunnel should have comment or be unexported (golint)
    • Line 56: warning: exported method InetSocketTunnel.SendInstruction should have comment or be unexported (golint)
    • Line 78: warning: comment on exported method InetSocketTunnel.ReceiveInstruction should be of the form "ReceiveInstruction ..." (golint)
    • Line 87: warning: exported method InetSocketTunnel.Connect should have comment or be unexported (golint)
    • Line 99: warning: exported method InetSocketTunnel.Disconnect should have comment or be unexported (golint)
    • bring/buttons.go
    • Line 3: warning: comment on exported type MouseButton should be of the form "MouseButton ..." (with optional leading article) (golint)
    • Line 7: warning: exported const MouseLeft should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: comment on exported type KeyCode should be of the form "KeyCode ..." (with optional leading article) (golint)
    • Line 18: warning: exported const KeyAgain should have comment (or a comment on this block) 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!