Preparing report...

Report for github.com/mt-inside/go-openrgb

A+    Excellent!    Found 9 issues across 19 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!


gocyclo100%

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.

No problems detected. Good job!


golint52%

Golint is a linter for Go source code.

    • go-openrgb/pkg/model/led.go
    • Line 9: warning: exported type LED should have comment or be unexported (golint)
    • Line 17: warning: exported method LED.GetName should have comment or be unexported (golint)
    • Line 22: warning: exported method LED.Size should have comment or be unexported (golint)
    • Line 26: warning: exported method LED.SetColor should have comment or be unexported (golint)
    • Line 30: warning: exported method LED.SetColors should have comment or be unexported (golint)
    • Line 38: warning: exported method LED.Diff should have comment or be unexported (golint)
    • go-openrgb/pkg/model/mode.go
    • Line 11: warning: exported type ModeList should have comment or be unexported (golint)
    • Line 13: warning: exported method ModeList.Directs should have comment or be unexported (golint)
    • Line 25: warning: exported type Mode should have comment or be unexported (golint)
    • Line 33: warning: exported type EffectMode should have comment or be unexported (golint)
    • Line 50: warning: exported method EffectMode.GetName should have comment or be unexported (golint)
    • Line 59: warning: exported method EffectMode.Size should have comment or be unexported (golint)
    • Line 63: warning: exported method EffectMode.SetColor should have comment or be unexported (golint)
    • Line 69: warning: exported method EffectMode.SetColors should have comment or be unexported (golint)
    • Line 78: warning: exported method EffectMode.Diff should have comment or be unexported (golint)
    • Line 118: warning: exported type DirectMode should have comment or be unexported (golint)
    • Line 135: warning: exported method DirectMode.GetName should have comment or be unexported (golint)
    • Line 144: warning: exported method DirectMode.Size should have comment or be unexported (golint)
    • Line 152: warning: exported method DirectMode.SetColor should have comment or be unexported (golint)
    • Line 158: warning: exported method DirectMode.SetColors should have comment or be unexported (golint)
    • Line 169: warning: exported method DirectMode.Diff should have comment or be unexported (golint)
    • go-openrgb/pkg/wire/mode.go
    • Line 10: warning: comment on exported type ColorMode should be of the form "ColorMode ..." (with optional leading article) (golint)
    • Line 38: warning: comment on exported type EffectDirection should be of the form "EffectDirection ..." (with optional leading article) (golint)
    • go-openrgb/pkg/model/device.go
    • Line 12: warning: exported type DeviceList should have comment or be unexported (golint)
    • Line 14: warning: comment on exported method DeviceList.ByName should be of the form "ByName ..." (golint)
    • Line 26: warning: exported method DeviceList.MustByName should have comment or be unexported (golint)
    • Line 34: warning: exported type Device should have comment or be unexported (golint)
    • Line 50: warning: exported method Device.GetActiveMode should have comment or be unexported (golint)
    • Line 53: warning: exported method Device.SetActiveMode should have comment or be unexported (golint)
    • Line 57: warning: exported method Device.MustActiveDirectMode should have comment or be unexported (golint)
    • Line 66: warning: exported method Device.MustGetDirectModeAndActivate should have comment or be unexported (golint)
    • Line 84: warning: exported method Device.GetName should have comment or be unexported (golint)
    • Line 93: warning: exported method Device.Size should have comment or be unexported (golint)
    • Line 101: warning: exported method Device.SetColor should have comment or be unexported (golint)
    • Line 105: warning: exported method Device.SetColors should have comment or be unexported (golint)
    • Line 113: warning: exported method Device.Diff should have comment or be unexported (golint)
    • go-openrgb/pkg/model/model.go
    • Line 12: warning: comment on exported type Model should be of the form "Model ..." (with optional leading article) (golint)
    • Line 19: warning: exported type Settable should have comment or be unexported (golint)
    • Line 27: warning: exported function NewModel should have comment or be unexported (golint)
    • Line 44: warning: exported method Model.Size should have comment or be unexported (golint)
    • Line 52: warning: exported method Model.SetColor should have comment or be unexported (golint)
    • Line 58: warning: exported method Model.SetColors should have comment or be unexported (golint)
    • Line 69: warning: exported method Model.Thence should have comment or be unexported (golint)
    • Line 69: warning: receiver name model should be consistent with previous receiver name m for Model (golint)
    • Line 162: warning: comment on exported method Model.Thither should be of the form "Thither ..." (golint)
    • Line 232: warning: comment on exported method Model.Diff should be of the form "Diff ..." (golint)
    • go-openrgb/pkg/model/zone.go
    • Line 11: warning: exported type ZoneList should have comment or be unexported (golint)
    • Line 13: warning: comment on exported method ZoneList.MustSingle should be of the form "MustSingle ..." (golint)
    • Line 21: warning: exported method ZoneList.ByName should have comment or be unexported (golint)
    • Line 29: warning: exported method ZoneList.MustByName should have comment or be unexported (golint)
    • Line 37: warning: exported type Zone should have comment or be unexported (golint)
    • Line 48: warning: exported method Zone.GetName should have comment or be unexported (golint)
    • Line 52: warning: exported method Zone.Size should have comment or be unexported (golint)
    • Line 56: warning: exported method Zone.SetColor should have comment or be unexported (golint)
    • Line 61: warning: exported method Zone.SetColors should have comment or be unexported (golint)
    • Line 70: warning: exported method Zone.Diff 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!


misspell94%

Misspell Finds commonly misspelled English words