Preparing report...

Report for github.com/polypmer/beetee

A    Great!    Found 7 issues across 9 files

Tweet

gofmt88%

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!


golint33%

Golint is a linter for Go source code.

    • beetee/message.go
    • Line 8: warning: exported const ChokeMsg should have comment (or a comment on this block) or be unexported (golint)
    • Line 89: warning: exported function DecodeCancelMessage should have comment or be unexported (golint)
    • Line 92: warning: exported function DecodePortMessage should have comment or be unexported (golint)
    • Line 99: warning: comment on exported function HandShake should be of the form "HandShake ..." (golint)
    • Line 121: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 131: warning: comment on exported function RequestMessage should be of the form "RequestMessage ..." (golint)
    • beetee/peer.go
    • Line 49: warning: comment on exported method Peer.HandShake should be of the form "HandShake ..." (golint)
    • beetee/torrent.go
    • Line 54: warning: exported type TorrentFile should have comment or be unexported (golint)
    • Line 119: warning: exported function UrlEncode should have comment or be unexported (golint)
    • beetee/tracker.go
    • Line 14: warning: exported const CONREQ should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported const CONNID should have comment or be unexported (golint)
    • Line 20: warning: exported type TrackerRequest should have comment or be unexported (golint)
    • Line 44: warning: comment on exported type TrackerResponseDict should be of the form "TrackerResponseDict ..." (with optional leading article) (golint)
    • Line 50: warning: exported function HTTPTracker should have comment or be unexported (golint)
    • Line 88: warning: exported function UDPTracker should have comment or be unexported (golint)
    • Line 150: warning: exported function GenPeerId should have comment or be unexported (golint)
    • Line 169: warning: exported function UDPTrackerRequest should have comment or be unexported (golint)
    • Line 177: warning: exported function UDPValidateResponse should have comment or be unexported (golint)
    • beetee/beetee.go
    • Line 14: warning: exported const BLOCKSIZE should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type Download should have comment or be unexported (golint)
    • beetee/beetee_test.go
    • Line 408: warning: don't use underscores in Go names; var dummy_data should be dummyData (golint)
    • Line 409: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)

gocyclo88%

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.


ineffassign77%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell55%

Misspell Finds commonly misspelled English words