Preparing report...

Report for github.com/wzshiming/console

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


golint30%

Golint is a linter for Go source code.

    • console/router/router.go
    • Line 79: warning: exported function ResponseJSON should have comment or be unexported (golint)
    • Line 91: warning: exported function ExecRouter should have comment or be unexported (golint)
    • console/docker/session_docker.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 12: warning: exported type SessionsDocker should have comment or be unexported (golint)
    • Line 18: warning: exported function NewDockerSessions should have comment or be unexported (golint)
    • Line 29: warning: exported method SessionsDocker.CreateExec should have comment or be unexported (golint)
    • Line 47: warning: exported method SessionsDocker.StartExec should have comment or be unexported (golint)
    • Line 63: warning: exported method SessionsDocker.ResizeExecTTY should have comment or be unexported (golint)
    • console/driver.go
    • Line 8: warning: exported type Driver should have comment or be unexported (golint)
    • Line 15: warning: exported function Register should have comment or be unexported (golint)
    • Line 27: warning: exported function GetDrivers should have comment or be unexported (golint)
    • console/session.go
    • Line 7: warning: exported type Sessions should have comment or be unexported (golint)
    • Line 13: warning: exported type ReqCreateExec should have comment or be unexported (golint)
    • Line 20: warning: exported type RespCreateExec should have comment or be unexported (golint)
    • Line 24: warning: exported type ReqResizeExecTTY should have comment or be unexported (golint)
    • console/ssh/session_ssh.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 14: warning: exported type SessionsSsh should have comment or be unexported (golint)
    • Line 21: warning: exported function NewSshSessions should have comment or be unexported (golint)
    • Line 49: warning: exported method SessionsSsh.CreateExec should have comment or be unexported (golint)
    • Line 62: warning: exported method SessionsSsh.StartExec should have comment or be unexported (golint)
    • Line 93: warning: exported method SessionsSsh.ResizeExecTTY should have comment or be unexported (golint)
    • console/shell/session_shell_notwin.go
    • Line 3: warning: don't use an underscore in package name (golint)
    • Line 17: warning: exported type SessionsShell should have comment or be unexported (golint)
    • Line 23: warning: exported function NewShellSessions should have comment or be unexported (golint)
    • Line 29: warning: exported method SessionsShell.CreateExec should have comment or be unexported (golint)
    • Line 44: warning: exported method SessionsShell.StartExec should have comment or be unexported (golint)
    • Line 59: warning: exported method SessionsShell.ResizeExecTTY should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign80%

IneffAssign detects ineffectual assignments in Go code.

    • console/cmd/web_console/main.go
    • Line 10: warning: missing go.sum entry for module providing package github.com/gorilla/handlers (imported by github.com/wzshiming/console/cmd/web_console); to add: (ineffassign)
    • Line 10: warning: could not import github.com/gorilla/handlers (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!