Preparing report...

Report for github.com/radovskyb/go-packages

A+    Excellent!    Found 72 issues across 731 files

Tweet

gofmt99%

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!


gocyclo99%

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.


golint90%

Golint is a linter for Go source code.

    • go-packages/multipart/fileheader/main.go
    • Line 16: warning: exported function Handler should have comment or be unexported (golint)
    • Line 49: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 116: warning: exported function GracefulExit should have comment or be unexported (golint)
    • go-packages/sort/examples/sortwrapper/main.go
    • Line 8: warning: exported type Grams should have comment or be unexported (golint)
    • Line 14: warning: exported type Food should have comment or be unexported (golint)
    • Line 19: warning: exported type Foods should have comment or be unexported (golint)
    • Line 21: warning: exported method Foods.Len should have comment or be unexported (golint)
    • Line 25: warning: exported method Foods.Swap should have comment or be unexported (golint)
    • Line 29: warning: exported type ByName should have comment or be unexported (golint)
    • Line 33: warning: exported method ByName.Less should have comment or be unexported (golint)
    • Line 37: warning: exported type ByWeight should have comment or be unexported (golint)
    • Line 41: warning: exported method ByWeight.Less should have comment or be unexported (golint)
    • go-packages/sync/pool/main.go
    • Line 8: warning: exported type Client should have comment or be unexported (golint)
    • Line 12: warning: exported method Client.Talk should have comment or be unexported (golint)
    • Line 16: warning: exported function NewClient should have comment or be unexported (golint)
    • go-packages/builtin/append/main.go
    • Line 7: warning: don't use underscores in Go names; var slice_one should be sliceOne (golint)
    • Line 8: warning: don't use underscores in Go names; var slice_two should be sliceTwo (golint)
    • Line 27: warning: exported function PrintSlice should have comment or be unexported (golint)
    • go-packages/rpc/server/main.go
    • Line 10: warning: exported type Args should have comment or be unexported (golint)
    • Line 14: warning: exported type Arith should have comment or be unexported (golint)
    • Line 16: warning: exported method Arith.Add should have comment or be unexported (golint)
    • go-packages/builtin/cap_and_len/main.go
    • Line 28: warning: don't use underscores in Go names; var arr_one should be arrOne (golint)
    • Line 51: warning: don't use underscores in Go names; var slice_one should be sliceOne (golint)
    • Line 57: warning: don't use underscores in Go names; var slice_two should be sliceTwo (golint)
    • Line 63: warning: don't use underscores in Go names; var slice_three should be sliceThree (golint)
    • Line 69: warning: don't use underscores in Go names; var slice_four should be sliceFour (golint)
    • Line 75: warning: don't use underscores in Go names; var slice_five should be sliceFive (golint)
    • Line 87: warning: don't use underscores in Go names; var channel_one should be channelOne (golint)
    • Line 94: warning: don't use underscores in Go names; var channel_two should be channelTwo (golint)
    • go-packages/time/ticker/main.go
    • Line 9: warning: exported type Ticker should have comment or be unexported (golint)
    • Line 14: warning: exported function NewTicker should have comment or be unexported (golint)
    • Line 21: warning: exported method Ticker.Tick should have comment or be unexported (golint)
    • Line 33: warning: exported method Ticker.Stop should have comment or be unexported (golint)
    • go-packages/jsonrpc/server/main.go
    • Line 10: warning: exported type Args should have comment or be unexported (golint)
    • Line 14: warning: exported type Arith should have comment or be unexported (golint)
    • Line 16: warning: exported method Arith.Add should have comment or be unexported (golint)
    • go-packages/fmt/gostringer/main.go
    • Line 5: warning: exported type MyObject should have comment or be unexported (golint)
    • Line 9: warning: comment on exported method MyObject.GoString should be of the form "GoString ..." (golint)
    • go-packages/errors/main.go
    • Line 34: warning: error var slurpyError should have name of the form errFoo (golint)
    • Line 36: warning: exported function Slurpy should have comment or be unexported (golint)
    • Line 43: warning: exported function ErrorReturningFunction should have comment or be unexported (golint)
    • go-packages/image/canvas/main.go
    • Line 14: warning: exported type Vector should have comment or be unexported (golint)
    • Line 18: warning: exported method Vector.Rotate should have comment or be unexported (golint)
    • Line 23: warning: exported method Vector.Sub should have comment or be unexported (golint)
    • Line 27: warning: exported method Vector.Length should have comment or be unexported (golint)
    • Line 31: warning: exported method Vector.Add should have comment or be unexported (golint)
    • Line 35: warning: exported method Vector.Scale should have comment or be unexported (golint)
    • Line 43: warning: exported type Canvas should have comment or be unexported (golint)
    • Line 61: warning: exported method Canvas.DrawGradient should have comment or be unexported (golint)
    • Line 77: warning: exported method Canvas.DrawLine should have comment or be unexported (golint)
    • Line 80: warning: don't use underscores in Go names; var x_step should be xStep (golint)
    • Line 80: warning: don't use underscores in Go names; var y_step should be yStep (golint)
    • Line 90: warning: exported method Canvas.DrawSpiral should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!