Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
sshproxy/codes.go
- Line 3: warning: comment on exported const EBackendConnectionFailed should be of the form "EBackendConnectionFailed ..." (golint)
- Line 7: warning: comment on exported const EDisconnected should be of the form "EDisconnected ..." (golint)
- Line 10: warning: comment on exported const EBackendHandshakeFailed should be of the form "EBackendHandshakeFailed ..." (golint)
- Line 14: warning: comment on exported const EInvalidFingerprint should be of the form "EInvalidFingerprint ..." (golint)
- Line 19: warning: comment on exported const EProgramAlreadyStarted should be of the form "EProgramAlreadyStarted ..." (golint)
- Line 23: warning: comment on exported const EProgramNotStarted should be of the form "EProgramNotStarted ..." (golint)
- Line 27: warning: comment on exported const EStdinError should be of the form "EStdinError ..." (golint)
- Line 30: warning: comment on exported const EStdoutError should be of the form "EStdoutError ..." (golint)
- Line 33: warning: comment on exported const EStderrError should be of the form "EStderrError ..." (golint)
- Line 36: warning: comment on exported const MConnecting should be of the form "MConnecting ..." (golint)
- Line 39: warning: exported const EBackendRequestFailed should have comment or be unexported (golint)
- Line 41: warning: comment on exported const EWindowChangeFailed should be of the form "EWindowChangeFailed ..." (golint)
- Line 45: warning: comment on exported const MShutdown should be of the form "MShutdown ..." (golint)
- Line 48: warning: comment on exported const ESignalFailed should be of the form "ESignalFailed ..." (golint)
- Line 52: warning: comment on exported const EChannelCloseFailed should be of the form "EChannelCloseFailed ..." (golint)
- Line 55: warning: comment on exported const EBackendSessionFailed should be of the form "EBackendSessionFailed ..." (golint)
- Line 58: warning: comment on exported const MSession should be of the form "MSession ..." (golint)
- Line 61: warning: comment on exported const MSessionOpen should be of the form "MSessionOpen ..." (golint)
- Line 64: warning: comment on exported const MSessionClose should be of the form "MSessionClose ..." (golint)
- Line 67: warning: comment on exported const MSessionClosed should be of the form "MSessionClosed ..." (golint)
- Line 70: warning: comment on exported const ESessionCloseFailed should be of the form "ESessionCloseFailed ..." (golint)
- Line 74: warning: comment on exported const MExitSignal should be of the form "MExitSignal ..." (golint)
- Line 77: warning: comment on exported const MExitSignalDecodeFailed should be of the form "MExitSignalDecodeFailed ..." (golint)
- Line 81: warning: comment on exported const MExitStatus should be of the form "MExitStatus ..." (golint)
- Line 84: warning: comment on exported const MExitStatusDecodeFailed should be of the form "MExitStatusDecodeFailed ..." (golint)
- Line 88: warning: comment on exported const MDisconnected should be of the form "MDisconnected ..." (golint)
- Line 91: warning: comment on exported const EShuttingDown should be of the form "EShuttingDown ..." (golint)
- Line 94: warning: comment on exported const MBackendSessionClosed should be of the form "MBackendSessionClosed ..." (golint)
- Line 97: warning: comment on exported const MBackendSessionClosing should be of the form "MBackendSessionClosing ..." (golint)
- Line 100: warning: comment on exported const EBackendCloseFailed should be of the form "EBackendCloseFailed ..." (golint)
- Line 103: warning: exported const MBackendDisconnecting should have comment or be unexported (golint)
- Line 105: warning: exported const MBackendDisconnectFailed should have comment or be unexported (golint)
- Line 107: warning: exported const MBackendDisconnected should have comment or be unexported (golint)
- Line 109: warning: exported const MStderrComplete should have comment or be unexported (golint)
- Line 111: warning: exported const MStdoutComplete should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!