Preparing report...

Report for github.com/kyai/redis-cui

A    Great!    Found 14 issues across 16 files

Tweet

gofmt87%

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!


gocyclo93%

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.


golint12%

Golint is a linter for Go source code.

    • redis-cui/class/hash.go
    • Line 5: warning: exported type Hash should have comment or be unexported (golint)
    • Line 9: warning: exported method Hash.Column should have comment or be unexported (golint)
    • Line 13: warning: exported method Hash.Widths should have comment or be unexported (golint)
    • Line 24: warning: exported method Hash.Render should have comment or be unexported (golint)
    • redis-cui/class/list.go
    • Line 5: warning: exported type List should have comment or be unexported (golint)
    • Line 9: warning: exported method List.Column should have comment or be unexported (golint)
    • Line 13: warning: exported method List.Widths should have comment or be unexported (golint)
    • Line 24: warning: exported method List.Render should have comment or be unexported (golint)
    • redis-cui/common/common.go
    • Line 3: warning: exported function FillLeft should have comment or be unexported (golint)
    • Line 10: warning: exported function FillRight should have comment or be unexported (golint)
    • Line 17: warning: exported function Characters should have comment or be unexported (golint)
    • Line 19: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • redis-cui/class/class.go
    • Line 12: warning: exported type Class should have comment or be unexported (golint)
    • Line 19: warning: exported function NewClass should have comment or be unexported (golint)
    • Line 41: warning: exported type Base should have comment or be unexported (golint)
    • Line 47: warning: exported method Base.AddRow should have comment or be unexported (golint)
    • Line 54: warning: exported method Base.Widths should have comment or be unexported (golint)
    • redis-cui/class/zset.go
    • Line 5: warning: exported type Zset should have comment or be unexported (golint)
    • Line 9: warning: exported method Zset.Column should have comment or be unexported (golint)
    • Line 13: warning: exported method Zset.Widths should have comment or be unexported (golint)
    • Line 24: warning: exported method Zset.Render should have comment or be unexported (golint)
    • redis-cui/cmd/cmd.go
    • Line 13: warning: exported var RedisHost should have comment or be unexported (golint)
    • Line 24: warning: exported type Flag should have comment or be unexported (golint)
    • Line 32: warning: exported type Option should have comment or be unexported (golint)
    • redis-cui/cui/cui.go
    • Line 12: warning: exported const ViewInfo should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported function New should have comment or be unexported (golint)
    • redis-cui/class/stream.go
    • Line 5: warning: exported type Stream should have comment or be unexported (golint)
    • Line 9: warning: exported method Stream.Column should have comment or be unexported (golint)
    • Line 13: warning: exported method Stream.Widths should have comment or be unexported (golint)
    • Line 24: warning: exported method Stream.Render should have comment or be unexported (golint)
    • redis-cui/class/string.go
    • Line 10: warning: exported type String should have comment or be unexported (golint)
    • Line 14: warning: exported method String.Column should have comment or be unexported (golint)
    • Line 18: warning: exported method String.Widths should have comment or be unexported (golint)
    • Line 23: warning: exported method String.Render should have comment or be unexported (golint)
    • redis-cui/cui/func.go
    • Line 9: warning: exported function MapKeys should have comment or be unexported (golint)
    • Line 10: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 17: warning: exported function StringRaw should have comment or be unexported (golint)
    • Line 21: warning: exported function StringLen should have comment or be unexported (golint)
    • Line 25: warning: exported function StreamFmt should have comment or be unexported (golint)
    • Line 27: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • redis-cui/common/extend.go
    • Line 7: warning: exported type Extend should have comment or be unexported (golint)
    • Line 12: warning: exported function NewExtend should have comment or be unexported (golint)
    • Line 19: warning: exported method Extend.SetCurrentViewOnTop should have comment or be unexported (golint)
    • Line 26: warning: exported method Extend.Open should have comment or be unexported (golint)
    • Line 37: warning: exported method Extend.OpenOnCenter should have comment or be unexported (golint)
    • Line 43: warning: exported method Extend.Close should have comment or be unexported (golint)
    • Line 56: warning: exported method Extend.GetCurrentLine 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!