Preparing report...

Report for go.cryptoscope.co/muxrpc

A+    Excellent!    Found 22 issues across 48 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!


golint60%

Golint is a linter for Go source code.

    • /go.cryptoscope.co/muxrpc/cmd/muxgen/muxgen.go
    • Line 28: warning: exported type Arg should have comment or be unexported (golint)
    • Line 42: warning: exported type Args should have comment or be unexported (golint)
    • Line 63: warning: exported method Args.Signature should have comment or be unexported (golint)
    • Line 74: warning: exported method Args.AsArgs should have comment or be unexported (golint)
    • Line 84: warning: exported type Func should have comment or be unexported (golint)
    • Line 92: warning: exported method Func.Name should have comment or be unexported (golint)
    • Line 102: warning: exported function Parse should have comment or be unexported (golint)
    • Line 183: warning: exported method Func.Generate should have comment or be unexported (golint)
    • Line 183: warning: receiver name m should be consistent with previous receiver name f for Func (golint)
    • Line 198: warning: receiver name m should be consistent with previous receiver name f for Func (golint)
    • Line 206: warning: receiver name m should be consistent with previous receiver name f for Func (golint)
    • Line 214: warning: receiver name m should be consistent with previous receiver name f for Func (golint)
    • Line 222: warning: receiver name m should be consistent with previous receiver name f for Func (golint)
    • /go.cryptoscope.co/muxrpc/codec/reader.go
    • Line 13: warning: exported type Reader should have comment or be unexported (golint)
    • Line 15: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 57: warning: exported method Reader.NextBodyReader should have comment or be unexported (golint)
    • Line 61: warning: exported method Reader.ReadBodyInto should have comment or be unexported (golint)
    • /go.cryptoscope.co/muxrpc/rwc.go
    • Line 11: warning: exported const ChunkSize should have comment or be unexported (golint)
    • Line 13: warning: exported function NewSinkWriter should have comment or be unexported (golint)
    • Line 49: warning: exported function NewSourceReader should have comment or be unexported (golint)
    • /go.cryptoscope.co/muxrpc/typemux/new_mux.go
    • Line 20: warning: exported type HandlerMux should have comment or be unexported (golint)
    • Line 28: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported method HandlerMux.Handled should have comment or be unexported (golint)
    • Line 40: warning: exported method HandlerMux.HandleCall should have comment or be unexported (golint)
    • Line 52: warning: exported method HandlerMux.HandleConnect should have comment or be unexported (golint)
    • /go.cryptoscope.co/muxrpc/typemux/async.go
    • Line 13: warning: exported type AsyncFunc should have comment or be unexported (golint)
    • Line 15: warning: exported method AsyncFunc.HandleAsync should have comment or be unexported (golint)
    • Line 19: warning: exported type AsyncHandler should have comment or be unexported (golint)
    • /go.cryptoscope.co/muxrpc/handler.go
    • Line 25: warning: exported type CallHandler should have comment or be unexported (golint)
    • Line 29: warning: exported type ConnectHandler should have comment or be unexported (golint)
    • Line 33: warning: exported type HandlerWrapper should have comment or be unexported (golint)
    • Line 35: warning: exported function ApplyHandlerWrappers should have comment or be unexported (golint)
    • Line 43: warning: exported type HandlerMux should have comment or be unexported (golint)
    • Line 47: warning: exported method HandlerMux.Handled should have comment or be unexported (golint)
    • Line 56: warning: exported method HandlerMux.HandleCall should have comment or be unexported (golint)
    • Line 69: warning: exported method HandlerMux.HandleConnect should have comment or be unexported (golint)
    • Line 77: warning: exported method HandlerMux.Register should have comment or be unexported (golint)
    • /go.cryptoscope.co/muxrpc/codec/packet.go
    • Line 10: warning: exported type Body should have comment or be unexported (golint)
    • Line 26: warning: exported method Flag.Set should have comment or be unexported (golint)
    • Line 30: warning: exported method Flag.Clear should have comment or be unexported (golint)
    • Line 34: warning: exported method Flag.Get should have comment or be unexported (golint)
    • /go.cryptoscope.co/muxrpc/stream2_sink.go
    • Line 16: warning: exported type ByteSinker should have comment or be unexported (golint)
    • Line 48: warning: exported method ByteSink.SetEncoding should have comment or be unexported (golint)
    • Line 87: warning: exported method ByteSink.CloseWithError should have comment or be unexported (golint)
    • Line 116: warning: exported method ByteSink.Close should have comment or be unexported (golint)

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!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell89%

Misspell Finds commonly misspelled English words