Preparing report...

Report for github.com/wwt/guac

A    Great!    Found 10 issues across 19 files

Tweet

gofmt84%

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!


gocyclo89%

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.

    • guac/errors.go
    • Line 42: warning: cyclomatic complexity 23 of function (ErrKind).Status() is high (> 15) (gocyclo)
    • guac/stream.go
    • Line 65: warning: cyclomatic complexity 18 of function (*Stream).ReadSome() is high (> 15) (gocyclo)

golint63%

Golint is a linter for Go source code.

    • guac/tunnel_map.go
    • Line 25: warning: exported function NewLastAccessedTunnel should have comment or be unexported (golint)
    • Line 31: warning: exported method LastAccessedTunnel.Access should have comment or be unexported (golint)
    • Line 37: warning: exported method LastAccessedTunnel.GetLastAccessedTime should have comment or be unexported (golint)
    • Line 136: warning: comment on exported method TunnelMap.Put should be of the form "Put ..." (golint)
    • guac/errors.go
    • Line 8: warning: exported type ErrGuac should have comment or be unexported (golint)
    • Line 14: warning: exported type ErrKind should have comment or be unexported (golint)
    • Line 17: warning: exported const ErrClientBadType should have comment (or a comment on this block) or be unexported (golint)
    • guac/instruction.go
    • Line 38: warning: exported method Instruction.Byte should have comment or be unexported (golint)
    • Line 42: warning: exported function Parse should have comment or be unexported (golint)
    • guac/status.go
    • Line 3: warning: exported type Status should have comment or be unexported (golint)
    • guac/stream.go
    • Line 12: warning: exported const SocketTimeout should have comment (or a comment on this block) or be unexported (golint)
    • guac/tunnel.go
    • Line 9: warning: comment on exported const InternalDataOpcode should be of the form "InternalDataOpcode ..." (golint)
    • Line 52: warning: comment on exported type SimpleTunnel should be of the form "SimpleTunnel ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!