Preparing report...

Report for github.com/j-vizcaino/ir-remotes

A+    Excellent!    Found 11 issues across 16 files

Tweet

gofmt93%

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!


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!


golint37%

Golint is a linter for Go source code.

    • ir-remotes/pkg/remotes/ircommand.go
    • Line 8: warning: exported type IRCommand should have comment or be unexported (golint)
    • Line 10: warning: exported method IRCommand.UnmarshalJSON should have comment or be unexported (golint)
    • Line 30: warning: exported method IRCommand.MarshalJSON should have comment or be unexported (golint)
    • ir-remotes/pkg/remotes/remote.go
    • Line 8: warning: exported type Remote should have comment or be unexported (golint)
    • Line 13: warning: exported type RemoteList should have comment or be unexported (golint)
    • Line 15: warning: exported function NewRemote should have comment or be unexported (golint)
    • Line 22: warning: exported method Remote.AddCommand should have comment or be unexported (golint)
    • Line 34: warning: exported method Remote.CommandNames should have comment or be unexported (golint)
    • Line 43: warning: exported method RemoteList.Find should have comment or be unexported (golint)
    • Line 52: warning: exported method RemoteList.Names should have comment or be unexported (golint)
    • ir-remotes/pkg/devices/device.go
    • Line 88: warning: exported method DeviceInfoList.AddDevice should have comment or be unexported (golint)
    • Line 105: warning: exported type DeviceInfoPredicate should have comment or be unexported (golint)
    • Line 107: warning: exported function ByName should have comment or be unexported (golint)
    • Line 113: warning: exported method DeviceInfoList.Find should have comment or be unexported (golint)
    • Line 122: warning: exported method DeviceInfoList.InitializeDevices should have comment or be unexported (golint)
    • ir-remotes/pkg/utils/json.go
    • Line 10: warning: exported function Save should have comment or be unexported (golint)
    • Line 16: warning: exported function SaveToFile should have comment or be unexported (golint)
    • Line 27: warning: exported function Load should have comment or be unexported (golint)
    • Line 32: warning: exported function LoadFromFile should have comment or be unexported (golint)
    • Line 41: warning: exported function LoadFromFilesystem should have comment or be unexported (golint)
    • ir-remotes/cmd/root.go
    • Line 48: warning: exported function Root should have comment or be unexported (golint)
    • Line 52: warning: exported function Execute should have comment or be unexported (golint)
    • ir-remotes/cmd/server.go
    • Line 68: warning: exported type Handler should have comment or be unexported (golint)
    • Line 188: warning: exported function Server 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!