Preparing report...

Report for github.com/containerssh/sshserver

A+    Excellent!    Found 8 issues across 68 files

Tweet

gofmt95%

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!


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!


golint91%

Golint is a linter for Go source code.

    • sshserver/handler.go
    • Line 68: warning: exported method KeyboardInteractiveQuestions.Add should have comment or be unexported (golint)
    • sshserver/codes.go
    • Line 3: warning: comment on exported const MConnected should be of the form "MConnected ..." (golint)
    • Line 6: warning: comment on exported const MDisconnected should be of the form "MDisconnected ..." (golint)
    • Line 9: warning: comment on exported const EHandshakeFailed should be of the form "EHandshakeFailed ..." (golint)
    • Line 13: warning: comment on exported const MHandshakeSuccessful should be of the form "MHandshakeSuccessful ..." (golint)
    • Line 16: warning: comment on exported const EUnsupportedGlobalRequest should be of the form "EUnsupportedGlobalRequest ..." (golint)
    • Line 19: warning: comment on exported const EReplyFailed should be of the form "EReplyFailed ..." (golint)
    • Line 23: warning: comment on exported const EUnsupportedChannelType should be of the form "EUnsupportedChannelType ..." (golint)
    • Line 26: warning: comment on exported const EAlreadyRunning should be of the form "EAlreadyRunning ..." (golint)
    • Line 29: warning: comment on exported const EStartFailed should be of the form "EStartFailed ..." (golint)
    • Line 32: warning: comment on exported const EListenCloseFailed should be of the form "EListenCloseFailed ..." (golint)
    • Line 35: warning: comment on exported const MNewChannel should be of the form "MNewChannel ..." (golint)
    • Line 38: warning: comment on exported const MNewChannelRejected should be of the form "MNewChannelRejected ..." (golint)
    • Line 41: warning: comment on exported const MServiceAvailable should be of the form "MServiceAvailable ..." (golint)
    • Line 44: warning: comment on exported const EAuthUnavailable should be of the form "EAuthUnavailable ..." (golint)
    • Line 47: warning: comment on exported const EAuthFailed should be of the form "EAuthFailed ..." (golint)
    • Line 50: warning: comment on exported const EAuthSuccessful should be of the form "EAuthSuccessful ..." (golint)
    • Line 53: warning: comment on exported const EExitCodeFailed should be of the form "EExitCodeFailed ..." (golint)
    • Line 56: warning: comment on exported const EDecodeFailed should be of the form "EDecodeFailed ..." (golint)
    • Line 60: warning: comment on exported const MExit should be of the form "MExit ..." (golint)
    • Line 63: warning: comment on exported const MExitSignal should be of the form "MExitSignal ..." (golint)
    • Line 66: warning: comment on exported const MChannelRequest should be of the form "MChannelRequest ..." (golint)
    • Line 69: warning: comment on exported const MChannelRequestFailed should be of the form "MChannelRequestFailed ..." (golint)
    • Line 72: warning: comment on exported const MChannelRequestSuccessful should be of the form "MChannelRequestSuccessful ..." (golint)
    • Line 75: warning: comment on exported const EBackendRejected should be of the form "EBackendRejected ..." (golint)
    • Line 78: warning: comment on exported const ESOReuseFailed should be of the form "ESOReuseFailed ..." (golint)
    • Line 81: warning: comment on exported const ENotImplemented should be of the form "ENotImplemented ..." (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!