Preparing report...

Report for github.com/WinPooh32/peerstohttp

A+    Excellent!    Found 11 issues across 15 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!


gocyclo93%

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.


golint26%

Golint is a linter for Go source code.

    • peerstohttp/http/render/content_type.go
    • Line 13: warning: exported const ParamContentType should have comment or be unexported (golint)
    • Line 26: warning: exported function GetContentType should have comment or be unexported (golint)
    • Line 39: warning: exported function GetAcceptedContentType should have comment or be unexported (golint)
    • Line 52: warning: exported function ListContentType should have comment or be unexported (golint)
    • peerstohttp/http/render/responder.go
    • Line 18: warning: exported function M3U should have comment or be unexported (golint)
    • Line 76: warning: exported function HTML should have comment or be unexported (golint)
    • Line 136: warning: exported function Responder should have comment or be unexported (golint)
    • peerstohttp/playlist/tags.go
    • Line 52: warning: exported function ExtractPathTags should have comment or be unexported (golint)
    • Line 60: warning: exported function Overlap should have comment or be unexported (golint)
    • peerstohttp/http/handle.go
    • Line 23: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 47: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 66: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 83: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 100: warning: should not use basic type string as key in context.WithValue (golint)
    • peerstohttp/app/app.go
    • Line 31: warning: comment on exported type App should be of the form "App ..." (with optional leading article) (golint)
    • Line 45: warning: exported function New should have comment or be unexported (golint)
    • Line 92: warning: exported method App.Load should have comment or be unexported (golint)
    • Line 123: warning: exported method App.Client should have comment or be unexported (golint)
    • Line 127: warning: exported method App.Track should have comment or be unexported (golint)
    • Line 131: warning: exported method App.TrackHash should have comment or be unexported (golint)
    • Line 135: warning: exported method App.TrackMagnet should have comment or be unexported (golint)
    • Line 139: warning: exported method App.TrackContext should have comment or be unexported (golint)
    • Line 143: warning: exported method App.TrackHashContext should have comment or be unexported (golint)
    • Line 153: warning: exported method App.TrackMagnetContext should have comment or be unexported (golint)
    • Line 171: warning: exported method App.Torrent should have comment or be unexported (golint)
    • Line 179: warning: exported method App.Close should have comment or be unexported (golint)
    • peerstohttp/http/host/host.go
    • Line 11: warning: exported const ContextKeyHost should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported function Host should have comment or be unexported (golint)
    • peerstohttp/playlist/list.go
    • Line 14: warning: exported type Header should have comment or be unexported (golint)
    • Line 20: warning: exported type Item should have comment or be unexported (golint)
    • Line 31: warning: exported type PlayList should have comment or be unexported (golint)
    • Line 40: warning: exported method PlayList.Render 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!