Preparing report...

Report for github.com/stny/chocotable

A    Great!    Found 4 issues across 5 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!


golint20%

Golint is a linter for Go source code.

    • chocotable/align.go
    • Line 10: warning: exported type AlignType should have comment or be unexported (golint)
    • Line 13: warning: exported const LEFT should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported function Rjust should have comment or be unexported (golint)
    • Line 28: warning: exported function Ljust should have comment or be unexported (golint)
    • Line 36: warning: exported function Center should have comment or be unexported (golint)
    • chocotable/cell.go
    • Line 11: warning: exported type Cell should have comment or be unexported (golint)
    • Line 19: warning: exported function NewCell should have comment or be unexported (golint)
    • Line 30: warning: exported method Cell.Render should have comment or be unexported (golint)
    • chocotable/row.go
    • Line 8: warning: exported type Row should have comment or be unexported (golint)
    • Line 14: warning: exported function NewRow should have comment or be unexported (golint)
    • Line 22: warning: exported method Row.AddCells should have comment or be unexported (golint)
    • Line 30: warning: exported method Row.Render should have comment or be unexported (golint)
    • chocotable/table.go
    • Line 9: warning: exported const HORIZONTAL should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported var TOPBORDERS should have comment or be unexported (golint)
    • Line 28: warning: exported type Table should have comment or be unexported (golint)
    • Line 35: warning: exported method Table.AddRow should have comment or be unexported (golint)
    • Line 42: warning: exported method Table.Render should have comment or be unexported (golint)
    • Line 59: warning: exported method Table.Reset should have comment or be unexported (golint)
    • Line 64: warning: exported method Table.Println should have comment or be unexported (golint)
    • Line 79: warning: don't use underscores in Go names; method render_border should be renderBorder (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign80%

IneffAssign detects ineffectual assignments in Go code.

    • chocotable/align.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/mattn/go-runewidth (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/stny/goodbye (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/mattn/go-runewidth (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/stny/goodbye (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!