Preparing report...

Report for github.com/dgellow/sshooks

A+    Excellent!    Found 7 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.

    • sshooks/errors/errors.go
    • Line 5: warning: exported var ErrNoPubKeyCallback should have comment or be unexported (golint)
    • Line 6: warning: exported var ErrNoCmdsCallbacks should have comment or be unexported (golint)
    • Line 7: warning: exported var ErrEmptyPrivKeyPath should have comment or be unexported (golint)
    • Line 9: warning: exported var ErrInvalidEnvArgs should have comment or be unexported (golint)
    • Line 10: warning: exported var ErrNoSessionChannel should have comment or be unexported (golint)
    • Line 11: warning: exported var ErrNotSessionChannel should have comment or be unexported (golint)
    • sshooks/example/log.go
    • Line 9: warning: exported type Logger should have comment or be unexported (golint)
    • Line 15: warning: exported const TRACE should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported method Logger.Trace should have comment or be unexported (golint)
    • Line 29: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 35: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 41: warning: exported method Logger.Warn should have comment or be unexported (golint)
    • Line 53: warning: exported method Logger.Fatal should have comment or be unexported (golint)
    • sshooks/serverconf.go
    • Line 11: warning: exported type SSHKeygenConfig should have comment or be unexported (golint)
    • Line 18: warning: exported type ServerConfig should have comment or be unexported (golint)
    • Line 30: warning: exported method ServerConfig.Validate should have comment or be unexported (golint)
    • sshooks/session.go
    • Line 18: warning: exported type Session should have comment or be unexported (golint)
    • Line 35: warning: exported method Session.Run should have comment or be unexported (golint)
    • sshooks/util.go
    • Line 10: warning: exported function ExecCmd should have comment or be unexported (golint)
    • Line 23: warning: exported function FileExists should have comment or be unexported (golint)
    • Line 28: warning: exported function UIntToStr 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!