Preparing report...

Report for github.com/scutrobotlab/asuwave

A+    Excellent!    Found 12 issues across 26 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!


gocyclo88%

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.


golint61%

Golint is a linter for Go source code.

    • asuwave/datautil/const.go
    • Line 1: warning: package comment should be of the form "Package datautil ..." (golint)
    • Line 6: warning: comment on exported const NumMaxPacket should be of the form "NumMaxPacket ..." (golint)
    • Line 11: warning: exported const ActModeSubscribe should have comment (or a comment on this block) or be unexported (golint)
    • asuwave/datautil/datautil.go
    • Line 1: warning: package comment should be of the form "Package datautil ..." (golint)
    • Line 8: warning: comment on exported function MakeCmd should be of the form "MakeCmd ..." (golint)
    • Line 33: warning: comment on exported function FindValidPart should be of the form "FindValidPart ..." (golint)
    • Line 67: warning: comment on exported function MakeChartPack should be of the form "MakeChartPack ..." (golint)
    • asuwave/variable/typeconvert.go
    • Line 9: warning: exported function AnyToBytes should have comment or be unexported (golint)
    • Line 15: warning: exported function SpecToBytes should have comment or be unexported (golint)
    • Line 42: warning: exported function BytesToInt8 should have comment or be unexported (golint)
    • Line 49: warning: exported function BytesToInt16 should have comment or be unexported (golint)
    • Line 56: warning: exported function BytesToInt32 should have comment or be unexported (golint)
    • Line 63: warning: exported function BytesToInt64 should have comment or be unexported (golint)
    • Line 70: warning: exported function BytesToUint8 should have comment or be unexported (golint)
    • Line 77: warning: exported function BytesToUint16 should have comment or be unexported (golint)
    • Line 84: warning: exported function BytesToUint32 should have comment or be unexported (golint)
    • Line 91: warning: exported function BytesToUint64 should have comment or be unexported (golint)
    • Line 98: warning: exported function BytesToFloat32 should have comment or be unexported (golint)
    • Line 103: warning: exported function BytesToFloat64 should have comment or be unexported (golint)
    • asuwave/fromelf/fromelf.go
    • Line 1: warning: package comment should be of the form "Package fromelf ..." (golint)
    • Line 18: warning: comment on exported function Check should be of the form "Check ..." (golint)
    • Line 43: warning: comment on exported function ReadVariable should be of the form "ReadVariable ..." (golint)
    • asuwave/option/jsonfile.go
    • Line 10: warning: exported function JsonLoad should have comment or be unexported (golint)
    • Line 25: warning: exported function JsonSave should have comment or be unexported (golint)
    • asuwave/option/option.go
    • Line 11: warning: exported const SaveVariableProj should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type ConfigT should have comment or be unexported (golint)
    • Line 21: warning: exported var Config should have comment or be unexported (golint)
    • Line 25: warning: exported function CheckCanSave should have comment or be unexported (golint)
    • Line 29: warning: exported function Load should have comment or be unexported (golint)
    • Line 38: warning: exported function Save should have comment or be unexported (golint)
    • asuwave/serial/serial.go
    • Line 16: warning: exported type T should have comment or be unexported (golint)
    • Line 22: warning: exported var SerialCur should have comment or be unexported (golint)
    • Line 116: warning: exported function SendCmd should have comment or be unexported (golint)
    • Line 127: warning: exported function GrReceive should have comment or be unexported (golint)
    • Line 153: warning: exported function GrTransmit should have comment or be unexported (golint)
    • Line 164: warning: exported function GrRxPrase should have comment or be unexported (golint)
    • asuwave/variable/variable.go
    • Line 11: warning: exported var TypeLen should have comment or be unexported (golint)
    • Line 25: warning: exported type T should have comment or be unexported (golint)
    • Line 34: warning: exported type ListT should have comment or be unexported (golint)
    • Line 38: warning: exported var ToRead should have comment or be unexported (golint)
    • Line 39: warning: exported var ToModi should have comment or be unexported (golint)
    • Line 41: warning: exported type ToProjectT should have comment or be unexported (golint)
    • Line 46: warning: exported type ListProjectT should have comment or be unexported (golint)
    • Line 50: warning: exported var ToProj should have comment or be unexported (golint)
    • Line 52: warning: exported type ToChartT should have comment or be unexported (golint)
    • Line 59: warning: exported type ListChartT should have comment or be unexported (golint)
    • Line 69: warning: exported function Load should have comment or be unexported (golint)
    • Line 75: warning: exported function Refresh should have comment or be unexported (golint)
    • asuwave/helper/helper.go
    • Line 17: warning: exported var GitTag should have comment or be unexported (golint)
    • Line 40: warning: exported function AppConfigDir should have comment or be unexported (golint)
    • Line 49: warning: exported function GetVersion should have comment or be unexported (golint)
    • Line 53: warning: exported function CheckUpdate should have comment or be unexported (golint)
    • Line 90: warning: exported function DownloadFile should have comment or be unexported (golint)
    • Line 113: warning: exported function StartBrowser should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!