Preparing report...

Report for github.com/go-ui/ui

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


golint66%

Golint is a linter for Go source code.

    • ui/events/events.go
    • Line 3: warning: exported type Event should have comment or be unexported (golint)
    • Line 5: warning: exported type KeyDirection should have comment or be unexported (golint)
    • Line 7: warning: exported type KeyEvent should have comment or be unexported (golint)
    • Line 10: warning: exported type MouseMoveEvent should have comment or be unexported (golint)
    • ui/drivers/drivers.go
    • Line 10: warning: exported type DriverNotFoundError should have comment or be unexported (golint)
    • Line 18: warning: exported type Window should have comment or be unexported (golint)
    • Line 33: warning: exported type Surface should have comment or be unexported (golint)
    • Line 89: warning: exported type WindowType should have comment or be unexported (golint)
    • Line 92: warning: exported const NormalWindow should have comment (or a comment on this block) or be unexported (golint)
    • ui/layout/layout.go
    • Line 3: warning: exported type MinSizer should have comment or be unexported (golint)
    • Line 7: warning: exported type MaxSizer should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign33%

IneffAssign detects ineffectual assignments in Go code.

    • ui/drivers/dummy/dummy.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/go-ui/ui/drivers (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/go-ui/ui/events (invalid package name: "") (ineffassign)
    • ui/drivers/drivers.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/go-ui/ui/events (invalid package name: "") (ineffassign)
    • ui/drivers/x11/x11.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/BurntSushi/xgb/xproto (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/BurntSushi/xgbutil (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/BurntSushi/xgbutil/ewmh (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/BurntSushi/xgbutil/xevent (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/BurntSushi/xgbutil/xgraphics (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/BurntSushi/xgbutil/xwindow (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/go-ui/ui/drivers (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/go-ui/ui/events (invalid package name: "") (ineffassign)
    • Line 94: warning: undeclared name: xu (ineffassign)
    • Line 94: warning: undeclared name: atomNames (ineffassign)
    • ui/examples/main.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/go-ui/ui (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/go-ui/ui/drivers/x11 (invalid package name: "") (ineffassign)
    • ui/ui.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import github.com/go-ui/ui/drivers (invalid package name: "") (ineffassign)
    • ui/view.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/go-ui/ui/events (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!