Preparing report...

Report for github.com/keltia/flightaware-go

A+    Excellent!    Found 8 issues across 17 files

Tweet

gofmt94%

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!


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.

    • flightaware-go/decode.go
    • Line 109: warning: cyclomatic complexity 30 of function decodePosition() is high (> 15) (gocyclo)
    • Line 51: warning: cyclomatic complexity 25 of function decodeFlightplan() is high (> 15) (gocyclo)

golint64%

Golint is a linter for Go source code.

    • flightaware-go/cmd/fa-tail/fa-tail.go
    • Line 22: warning: comment on exported const BSIZE should be of the form "BSIZE ..." (golint)
    • Line 25: warning: comment on exported const FTversion should be of the form "FTversion ..." (golint)
    • Line 34: warning: exported var MyName should have comment or be unexported (golint)
    • Line 72: warning: don't use underscores in Go names; var time_edt should be timeEdt (golint)
    • Line 73: warning: don't use underscores in Go names; var time_eta should be timeEta (golint)
    • Line 80: warning: don't use underscores in Go names; var time_clock should be timeClock (golint)
    • flightaware-go/cmd/fa-export/fa-export.go
    • Line 7: warning: package comment should not have leading space (golint)
    • Line 29: warning: exported var RcFile should have comment or be unexported (golint)
    • Line 33: warning: comment on exported var MyName should be of the form "MyName ..." (golint)
    • Line 38: warning: comment on exported var FAversion should be of the form "FAversion ..." (golint)
    • flightaware-go/cmd/fa-export/utils.go
    • Line 8: warning: package comment should not have leading space (golint)
    • Line 23: warning: exported const RT_HOUR should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type Rotation should have comment or be unexported (golint)
    • Line 41: warning: comment on exported function AnalyzeFormat should be of the form "AnalyzeFormat ..." (golint)
    • Line 54: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 58: warning: comment on exported function ParseDate should be of the form "ParseDate ..." (golint)
    • Line 67: warning: comment on exported function CheckTimeout should be of the form "CheckTimeout ..." (golint)
    • Line 76: warning: if block ends with a return statement, so drop this else and outdent its block (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!