Preparing report...

Report for github.com/pilebones/go-nmea

(v0.9.0)

A+    Excellent!    Found 9 issues across 13 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!


gocyclo84%

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.

    • gpgga.go
    • Line 34: warning: cyclomatic complexity 17 of function (*GPGGA).parse() is high (> 15) (gocyclo)
    • gprmc.go
    • Line 33: warning: cyclomatic complexity 16 of function (*GPRMC).parse() is high (> 15) (gocyclo)

golint30%

Golint is a linter for Go source code.

    • const.go
    • Line 6: warning: comment on exported const Prefix should be of the form "Prefix ..." (golint)
    • Line 14: warning: comment on exported const TalkerIDProprietary should be of the form "TalkerIDProprietary ..." (golint)
    • Line 16: warning: exported const TalkerIDGPS should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type TypeID should have comment or be unexported (golint)
    • Line 35: warning: exported method TypeID.GetTypeID should have comment or be unexported (golint)
    • Line 39: warning: exported method TypeID.Serialize should have comment or be unexported (golint)
    • Line 43: warning: exported type MtkTypeID should have comment or be unexported (golint)
    • Line 48: warning: exported method MtkTypeID.Serialize should have comment or be unexported (golint)
    • Line 52: warning: exported type TalkerID should have comment or be unexported (golint)
    • Line 54: warning: exported method TalkerID.Serialize should have comment or be unexported (golint)
    • Line 158: warning: exported const Valid should have comment (or a comment on this block) or be unexported (golint)
    • Line 162: warning: exported type DataValid should have comment or be unexported (golint)
    • Line 164: warning: exported method DataValid.Serialize should have comment or be unexported (golint)
    • Line 172: warning: exported const NoFixMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 177: warning: exported type PositioningMode should have comment or be unexported (golint)
    • Line 179: warning: exported method PositioningMode.Serialize should have comment or be unexported (golint)
    • Line 196: warning: exported function ParsePositioningMode should have comment or be unexported (golint)
    • Line 207: warning: exported const ERROR should have comment (or a comment on this block) or be unexported (golint)
    • Line 213: warning: exported type Severity should have comment or be unexported (golint)
    • Line 215: warning: exported method Severity.Serialize should have comment or be unexported (golint)
    • Line 234: warning: exported function ParseSeverity should have comment or be unexported (golint)
    • gprmc.go
    • Line 16: warning: exported function NewGPRMC should have comment or be unexported (golint)
    • Line 20: warning: exported type GPRMC should have comment or be unexported (golint)
    • gptxt.go
    • Line 12: warning: exported function NewGPTXT should have comment or be unexported (golint)
    • Line 16: warning: exported type GPTXT should have comment or be unexported (golint)
    • Line 55: warning: exported method GPTXT.Serialize should have comment or be unexported (golint)
    • Line 80: warning: exported method GPTXT.Env should have comment or be unexported (golint)
    • Line 89: warning: exported method GPTXT.AntennaStatus should have comment or be unexported (golint)
    • gpgsv.go
    • Line 14: warning: exported function NewGPGSV should have comment or be unexported (golint)
    • Line 18: warning: exported type Satellite should have comment or be unexported (golint)
    • Line 61: warning: exported type GPGSV should have comment or be unexported (golint)
    • Line 122: warning: exported method GPGSV.Serialize should have comment or be unexported (golint)
    • gpvtg.go
    • Line 11: warning: exported function NewGPVTG should have comment or be unexported (golint)
    • Line 15: warning: exported type GPVTG should have comment or be unexported (golint)
    • coordinate.go
    • Line 12: warning: comment on exported const North should be of the form "North ..." (golint)
    • Line 14: warning: exported const South should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported var DMFormat should have comment or be unexported (golint)
    • Line 23: warning: exported type CardinalPoint should have comment or be unexported (golint)
    • Line 29: warning: exported function ParseCardinalPoint should have comment or be unexported (golint)
    • Line 40: warning: comment on exported const Min should be of the form "Min ..." (golint)
    • Line 47: warning: exported type LatLong should have comment or be unexported (golint)
    • Line 177: warning: exported method LatLong.ToDM should have comment or be unexported (golint)
    • Line 184: warning: comment on exported method LatLong.ToDMS should be of the form "ToDMS ..." (golint)
    • gpgga.go
    • Line 13: warning: exported function NewGPGGA should have comment or be unexported (golint)
    • Line 17: warning: exported type GPGGA should have comment or be unexported (golint)
    • Line 92: warning: exported method GPGGA.Serialize should have comment or be unexported (golint)
    • Line 138: warning: exported const InvalidIndicator should have comment (or a comment on this block) or be unexported (golint)
    • Line 143: warning: exported type QualityIndicator should have comment or be unexported (golint)
    • Line 159: warning: exported function ParseQualityIndicator should have comment or be unexported (golint)
    • gpgll.go
    • Line 12: warning: exported function NewGPGLL should have comment or be unexported (golint)
    • Line 16: warning: exported type GPGLL should have comment or be unexported (golint)
    • gpgsa.go
    • Line 11: warning: exported function NewGPGSA should have comment or be unexported (golint)
    • Line 15: warning: exported type GPGSA should have comment or be unexported (golint)
    • Line 67: warning: exported const FixStatusNoFix should have comment (or a comment on this block) or be unexported (golint)
    • Line 72: warning: exported type FixStatus should have comment or be unexported (golint)
    • Line 87: warning: exported function ParseFixStatus should have comment or be unexported (golint)
    • Line 103: warning: exported const ModeManual should have comment (or a comment on this block) or be unexported (golint)
    • Line 107: warning: exported type Mode should have comment or be unexported (golint)
    • Line 113: warning: exported function ParseMode 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!