Preparing report...

Report for github.com/die-net/led-controller

A    Great!    Found 9 issues across 11 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!


gocyclo81%

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.


golint36%

Golint is a linter for Go source code.

    • led-controller/frame.go
    • Line 11: warning: exported var ErrNoData should have comment or be unexported (golint)
    • Line 15: warning: exported type Frame should have comment or be unexported (golint)
    • Line 38: warning: exported function PixelListToFrame should have comment or be unexported (golint)
    • Line 80: warning: exported function SameSize should have comment or be unexported (golint)
    • Line 173: warning: exported method Frame.NextFrame should have comment or be unexported (golint)
    • Line 177: warning: exported method Frame.Close should have comment or be unexported (golint)
    • led-controller/receiver.go
    • Line 11: warning: exported type Incoming should have comment or be unexported (golint)
    • Line 19: warning: exported function Receiver should have comment or be unexported (golint)
    • led-controller/sender.go
    • Line 15: warning: exported var ErrShortWrite should have comment or be unexported (golint)
    • Line 18: warning: exported type Sender should have comment or be unexported (golint)
    • Line 29: warning: exported type Feedback should have comment or be unexported (golint)
    • Line 35: warning: exported type Status should have comment or be unexported (golint)
    • Line 43: warning: exported method Sender.Worker should have comment or be unexported (golint)
    • Line 78: warning: exported method Sender.SetColorFilter should have comment or be unexported (golint)
    • led-controller/streamer.go
    • Line 7: warning: exported type Streamer should have comment or be unexported (golint)
    • Line 11: warning: exported type Framer should have comment or be unexported (golint)
    • Line 16: warning: exported function NewStreamer should have comment or be unexported (golint)
    • Line 24: warning: exported method Streamer.SetFramer should have comment or be unexported (golint)
    • Line 28: warning: exported method Streamer.Close should have comment or be unexported (golint)
    • Line 32: warning: exported method Streamer.Worker should have comment or be unexported (golint)
    • led-controller/ws/hub.go
    • Line 22: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 32: warning: exported method Router.Worker should have comment or be unexported (golint)
    • led-controller/audio.go
    • Line 3: warning: exported type AudioMv should have comment or be unexported (golint)
    • Line 10: warning: exported method AudioMv.MovingAverage should have comment or be unexported (golint)
    • Line 27: warning: exported method AudioMv.Amplitude should have comment or be unexported (golint)
    • led-controller/decoder.go
    • Line 14: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 21: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 64: warning: exported method Decoder.NextImage should have comment or be unexported (golint)
    • Line 96: warning: exported method Decoder.NextFrame should have comment or be unexported (golint)
    • Line 128: warning: exported method Decoder.Close should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell90%

Misspell Finds commonly misspelled English words