Preparing report...

Report for github.com/knieriem/serport

A    Great!    Found 9 issues across 14 files

Tweet

gofmt92%

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!


gocyclo78%

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.


golint57%

Golint is a linter for Go source code.

    • serport/encoding/encoding.go
    • Line 8: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 12: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 16: warning: exported type StripCR should have comment or be unexported (golint)
    • Line 20: warning: exported method StripCR.Decode should have comment or be unexported (golint)
    • Line 51: warning: exported type TermInput should have comment or be unexported (golint)
    • Line 56: warning: exported method TermInput.Decode should have comment or be unexported (golint)
    • Line 74: warning: exported type InsertCR should have comment or be unexported (golint)
    • Line 78: warning: exported method InsertCR.Encode should have comment or be unexported (golint)
    • Line 106: warning: exported type Wrapper should have comment or be unexported (golint)
    • Line 131: warning: exported method Wrapper.WrapReader should have comment or be unexported (golint)
    • Line 137: warning: exported method Wrapper.WrapWriter should have comment or be unexported (golint)
    • serport/serenum/enum.go
    • Line 11: warning: exported type PortInfo should have comment or be unexported (golint)
    • Line 45: warning: exported const StdFormat should have comment or be unexported (golint)
    • serport/serial9p/clnt.go
    • Line 21: warning: comment on exported function MountConn should be of the form "MountConn ..." (golint)
    • Line 68: warning: comment on exported function OpenFsDev should be of the form "OpenFsDev ..." (golint)
    • serport/serport.go
    • Line 12: warning: exported type Port should have comment or be unexported (golint)
    • Line 39: warning: exported type Device should have comment or be unexported (golint)
    • Line 177: warning: exported type LineState should have comment or be unexported (golint)
    • Line 184: warning: exported function SetEncapsulatingPort 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!