Preparing report...

Report for github.com/skanehira/docui

A+    Excellent!    Found 4 issues across 26 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!


golint84%

Golint is a linter for Go source code.

    • docui/docker/streamer/common.go
    • Line 5: warning: exported type CommonStream should have comment or be unexported (golint)
    • Line 11: warning: exported method CommonStream.RestoreTerminal should have comment or be unexported (golint)
    • docui/docker/streamer/in.go
    • Line 9: warning: exported type In should have comment or be unexported (golint)
    • Line 18: warning: exported method In.Close should have comment or be unexported (golint)
    • Line 22: warning: exported method In.SetRawTerminal should have comment or be unexported (golint)
    • Line 27: warning: exported method In.RestoreTerminal should have comment or be unexported (golint)
    • Line 34: warning: exported function NewIn should have comment or be unexported (golint)
    • docui/docker/streamer/out.go
    • Line 10: warning: exported type Out should have comment or be unexported (golint)
    • Line 19: warning: exported method Out.GetTtySize should have comment or be unexported (golint)
    • Line 31: warning: exported function NewOut should have comment or be unexported (golint)
    • docui/docker/streamer/streamer.go
    • Line 20: warning: exported type ResizeContainer should have comment or be unexported (golint)
    • Line 23: warning: exported var ErrEmptyExecID should have comment or be unexported (golint)
    • Line 27: warning: exported type Streamer should have comment or be unexported (golint)
    • Line 34: warning: exported function New should have comment or be unexported (golint)
    • Line 42: warning: exported method Streamer.Stream should have comment or be unexported (golint)
    • Line 136: warning: exported method Streamer.SetRawTerminal 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!


misspell96%

Misspell Finds commonly misspelled English words