Preparing report...

Report for github.com/danielmorandini/booster

A+    Excellent!    Found 30 issues across 54 files

Tweet

gofmt94%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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.


golint46%

Golint is a linter for Go source code.

    • booster/network/packet/packet.go
    • Line 26: warning: exported type TagSet should have comment or be unexported (golint)
    • Line 34: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 40: warning: exported type Packet should have comment or be unexported (golint)
    • Line 45: warning: exported function New should have comment or be unexported (golint)
    • Line 51: warning: exported method Packet.AddModule should have comment or be unexported (golint)
    • Line 65: warning: exported method Packet.DelModule should have comment or be unexported (golint)
    • Line 71: warning: exported method Packet.Module should have comment or be unexported (golint)
    • Line 80: warning: exported type Module should have comment or be unexported (golint)
    • Line 86: warning: exported function NewModule should have comment or be unexported (golint)
    • Line 103: warning: exported method Module.ID should have comment or be unexported (golint)
    • Line 107: warning: exported method Module.Payload should have comment or be unexported (golint)
    • booster/protocol/encoder.go
    • Line 32: warning: comment on exported var PayloadEncoders should be of the form "PayloadEncoders ..." (golint)
    • Line 50: warning: comment on exported function Encode should be of the form "Encode ..." (golint)
    • booster/network/packet/tag.go
    • Line 26: warning: exported type TagReader should have comment or be unexported (golint)
    • Line 34: warning: exported function NewTagReader should have comment or be unexported (golint)
    • Line 47: warning: exported method TagReader.Flush should have comment or be unexported (golint)
    • Line 86: warning: exported type TagWriter should have comment or be unexported (golint)
    • Line 90: warning: exported function NewTagWriter should have comment or be unexported (golint)
    • booster/network/packet/decoder.go
    • Line 26: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 31: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 45: warning: exported method Decoder.Decode should have comment or be unexported (golint)
    • Line 114: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 137: warning: exported type ModuleDecoder should have comment or be unexported (golint)
    • Line 142: warning: exported function NewModuleDecoder should have comment or be unexported (golint)
    • Line 150: warning: exported method ModuleDecoder.Decode should have comment or be unexported (golint)
    • booster/network/packet/encoder.go
    • Line 25: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 30: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 38: warning: exported method Encoder.Encode should have comment or be unexported (golint)
    • Line 98: warning: exported type ModuleEncoder should have comment or be unexported (golint)
    • Line 103: warning: exported function NewModuleEncoder should have comment or be unexported (golint)
    • Line 111: warning: exported method ModuleEncoder.Encode should have comment or be unexported (golint)
    • booster/pubsub/pubsub.go
    • Line 45: warning: exported type CancelFunc should have comment or be unexported (golint)
    • Line 47: warning: exported type Action should have comment or be unexported (golint)
    • booster/protocol/payloads.go
    • Line 24: warning: exported type PayloadNetworkUpdate should have comment or be unexported (golint)
    • Line 30: warning: exported type PayloadProxyUpdate should have comment or be unexported (golint)
    • Line 36: warning: exported type PayloadCtrl should have comment or be unexported (golint)
    • Line 40: warning: exported type PayloadBandwidth should have comment or be unexported (golint)
    • Line 47: warning: exported type PayloadMonitor should have comment or be unexported (golint)
    • Line 51: warning: exported type PayloadHello should have comment or be unexported (golint)
    • Line 56: warning: exported type PayloadConnect should have comment or be unexported (golint)
    • Line 60: warning: exported type PayloadDisconnect should have comment or be unexported (golint)
    • Line 64: warning: exported type PayloadNode should have comment or be unexported (golint)
    • Line 72: warning: exported type Tunnel should have comment or be unexported (golint)
    • Line 78: warning: exported type PayloadHeartbeat should have comment or be unexported (golint)
    • booster/node/tunnel.go
    • Line 24: warning: exported type Tunnel should have comment or be unexported (golint)
    • Line 32: warning: exported function NewTunnel should have comment or be unexported (golint)
    • Line 40: warning: exported method Tunnel.ID should have comment or be unexported (golint)
    • Line 44: warning: exported method Tunnel.Copies should have comment or be unexported (golint)
    • Line 51: warning: exported method Tunnel.Copy should have comment or be unexported (golint)
    • booster/socks5/socks5.go
    • Line 102: warning: exported type Event should have comment or be unexported (golint)
    • Line 142: warning: exported type BandwidthMessage should have comment or be unexported (golint)
    • Line 149: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 192: warning: exported method Socks5.Run should have comment or be unexported (golint)
    • Line 214: warning: exported method Socks5.Close should have comment or be unexported (golint)
    • booster/network/network.go
    • Line 50: warning: exported type Config should have comment or be unexported (golint)
    • Line 220: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • booster/protocol/protocol.go
    • Line 26: warning: comment on exported const Version should be of the form "Version ..." (golint)
    • Line 35: warning: exported const CompressionNone should have comment or be unexported (golint)
    • Line 36: warning: exported const EncryptionNone should have comment or be unexported (golint)
    • Line 38: warning: exported type Module should have comment or be unexported (golint)
    • Line 55: warning: exported type Message should have comment or be unexported (golint)
    • Line 75: warning: exported type MonitorFeature should have comment or be unexported (golint)
    • Line 83: warning: exported type Operation should have comment or be unexported (golint)
    • Line 98: warning: exported const NodeAdded should have comment (or a comment on this block) or be unexported (golint)
    • booster/protocol/decoder.go
    • Line 32: warning: comment on exported var PayloadDecoders should be of the form "PayloadDecoders ..." (golint)
    • Line 47: warning: exported var HeaderDecoder should have comment or be unexported (golint)
    • booster/protocol/headers.go
    • Line 24: warning: exported type Header should have comment or be unexported (golint)
    • Line 31: warning: exported method Header.HasModule should have comment or be unexported (golint)
    • booster/booster/booster.go
    • Line 61: warning: exported type SendConsumeCloser should have comment or be unexported (golint)
    • Line 66: warning: exported type SendCloser should have comment or be unexported (golint)
    • Line 83: warning: exported var DefaultNetConfig should have comment or be unexported (golint)
    • Line 128: warning: exported method Booster.Net should have comment or be unexported (golint)
    • Line 235: warning: comment on exported method Booster.Restart should be of the form "Restart ..." (golint)
    • booster/booster/senders.go
    • Line 168: warning: exported type Inspection should have comment or be unexported (golint)
    • Line 174: warning: exported method Booster.Monitor should have comment or be unexported (golint)
    • booster/node/dispatcher.go
    • Line 35: warning: exported type Noder should have comment or be unexported (golint)
    • Line 51: warning: comment on exported function NewDispatcher should be of the form "NewDispatcher ..." (golint)
    • booster/node/node.go
    • Line 160: warning: exported method Node.Tunnels should have comment or be unexported (golint)
    • Line 173: warning: exported method Node.RemoveTunnel should have comment or be unexported (golint)
    • Line 194: warning: exported method Node.Tunnel should have comment or be unexported (golint)
    • Line 206: warning: exported method Node.Close should have comment or be unexported (golint)
    • Line 232: warning: exported method Node.Addr should have comment or be unexported (golint)
    • booster/booster/network.go
    • Line 117: warning: exported method Network.Encode should have comment or be unexported (golint)
    • Line 267: warning: comment on exported method Network.ValidatePacket should be of the form "ValidatePacket ..." (golint)
    • Line 526: warning: comment on exported method Conn.Consume should be of the form "Consume ..." (golint)
    • Line 536: warning: exported method Conn.Recv should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words