Preparing report...

Report for github.com/MetalBlueberry/chkb

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


gocyclo94%

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.


golint47%

Golint is a linter for Go source code.

    • chkb/pkg/chkb/mapper.go
    • Line 45: warning: exported function NewMapper should have comment or be unexported (golint)
    • Line 55: warning: exported method Mapper.WithLayers should have comment or be unexported (golint)
    • Line 60: warning: exported type KeyCode should have comment or be unexported (golint)
    • Line 66: warning: exported type KeyEvent should have comment or be unexported (golint)
    • Line 76: warning: exported type MapEvent should have comment or be unexported (golint)
    • chkb/pkg/deliverers/layerFile/layerFile.go
    • Line 23: warning: don't use MixedCaps in package name; layerFile should be layerfile (golint)
    • Line 34: warning: exported type LayerFile should have comment or be unexported (golint)
    • Line 40: warning: exported function NewLayerFile should have comment or be unexported (golint)
    • Line 55: warning: exported method LayerFile.Deliver should have comment or be unexported (golint)
    • chkb/pkg/chkb/deliverer.go
    • Line 49: warning: exported const KeyActionNil should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported const KbActionNil should have comment (or a comment on this block) or be unexported (golint)
    • chkb/pkg/chkb/ecodes.go
    • Line 26: warning: exported const EV_SYN should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported const KEY_RESERVED should have comment (or a comment on this block) or be unexported (golint)
    • chkb/cmd/root.go
    • Line 42: warning: exported var Version should have comment or be unexported (golint)
    • Line 157: warning: exported function Execute should have comment or be unexported (golint)
    • Line 171: warning: exported var ErrInvalidEvent should have comment or be unexported (golint)
    • Line 173: warning: exported function NewKeyInputEvent should have comment or be unexported (golint)
    • chkb/pkg/chkb/captor.go
    • Line 83: warning: comment on exported type InputActions should be of the form "InputActions ..." (with optional leading article) (golint)
    • Line 234: warning: exported function NewKeyEv should have comment or be unexported (golint)
    • chkb/pkg/chkb/config.go
    • Line 213: warning: receiver name action should be consistent with previous receiver name ev for KbActions (golint)
    • Line 233: warning: receiver name keyCode should be consistent with previous receiver name ev for KeyCode (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!