Preparing report...

Report for github.com/pagran/r-ssh

A+    Excellent!    Found 16 issues across 21 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!


golint23%

Golint is a linter for Go source code.

    • r-ssh/ssh/forward_controller.go
    • Line 12: warning: exported type ForwardHandler should have comment or be unexported (golint)
    • Line 14: warning: exported type ForwardController should have comment or be unexported (golint)
    • Line 21: warning: exported method ForwardController.HandleRequest should have comment or be unexported (golint)
    • Line 125: warning: exported method ForwardController.GetForwardHandler should have comment or be unexported (golint)
    • Line 136: warning: exported method ForwardController.Shutdown should have comment or be unexported (golint)
    • Line 153: warning: exported function NewForwardController should have comment or be unexported (golint)
    • r-ssh/ssh/server.go
    • Line 14: warning: exported type Server should have comment or be unexported (golint)
    • Line 25: warning: exported method Server.ForwardController should have comment or be unexported (golint)
    • Line 99: warning: exported method Server.Listen should have comment or be unexported (golint)
    • Line 131: warning: exported function NewServer should have comment or be unexported (golint)
    • r-ssh/web/server.go
    • Line 18: warning: exported type Server should have comment or be unexported (golint)
    • Line 123: warning: exported method Server.ListenTLS should have comment or be unexported (golint)
    • Line 128: warning: exported method Server.Listen should have comment or be unexported (golint)
    • Line 133: warning: exported function NewServer should have comment or be unexported (golint)
    • r-ssh/common/forward_utils.go
    • Line 18: warning: exported type ForwardFlags should have comment or be unexported (golint)
    • Line 23: warning: exported type ForwardInfo should have comment or be unexported (golint)
    • Line 64: warning: exported function BuildForwardInfo should have comment or be unexported (golint)
    • r-ssh/common/constants.go
    • Line 3: warning: exported const DefaultForwardAddr should have comment or be unexported (golint)
    • Line 4: warning: exported const DefaultForwardPort should have comment or be unexported (golint)
    • Line 6: warning: exported const ApplicationName should have comment or be unexported (golint)
    • Line 7: warning: exported const BannerMessage should have comment or be unexported (golint)
    • Line 13: warning: exported const MultipleSessionMessage should have comment or be unexported (golint)
    • Line 14: warning: exported const ExtensionFingerprint should have comment or be unexported (golint)
    • Line 16: warning: exported const HostKeySize should have comment or be unexported (golint)
    • Line 17: warning: exported const HostKeyFilePerm should have comment or be unexported (golint)
    • r-ssh/ssh/terminal/terminal.go
    • Line 12: warning: exported type BasicTerminal should have comment or be unexported (golint)
    • Line 22: warning: exported function NewBasicTerminal should have comment or be unexported (golint)
    • Line 32: warning: exported method BasicTerminal.WriteString should have comment or be unexported (golint)
    • Line 102: warning: exported method BasicTerminal.HandleChannels should have comment or be unexported (golint)
    • r-ssh/common/errors.go
    • Line 5: warning: exported var ErrAuthNotAllowed should have comment or be unexported (golint)
    • Line 6: warning: exported var ErrHostKeyIsDirectory should have comment or be unexported (golint)
    • Line 8: warning: exported var ErrUnknownRequestType should have comment or be unexported (golint)
    • Line 9: warning: exported var ErrForwardAlreadyBinded should have comment or be unexported (golint)
    • Line 10: warning: exported var ErrForwardNotFound should have comment or be unexported (golint)
    • Line 11: warning: exported var ErrPortNotAllowed should have comment or be unexported (golint)
    • r-ssh/ssh/auth/auth_provider.go
    • Line 3: warning: exported type Provider should have comment or be unexported (golint)
    • Line 13: warning: exported var DefaultAuthProvider should have comment or be unexported (golint)
    • Line 15: warning: exported type WhitelistProvider should have comment or be unexported (golint)
    • Line 19: warning: exported method WhitelistProvider.Auth should have comment or be unexported (golint)
    • Line 24: warning: exported function NewWhitelistAuthProvider 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!