Preparing report...

Report for github.com/kevinschoon/fit

(v0.0.0-20161102182221-fc27e31445f0)

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


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!


golint43%

Golint is a linter for Go source code.

    • types/grouping.go
    • Line 25: warning: exported method Grouping.UnmarshalJSON should have comment or be unexported (golint)
    • Line 37: warning: exported method Grouping.MarshalJSON should have comment or be unexported (golint)
    • Line 49: warning: exported method Grouping.Group should have comment or be unexported (golint)
    • types/types.go
    • Line 14: warning: exported var ErrAPI should have comment or be unexported (golint)
    • Line 45: warning: exported type Client should have comment or be unexported (golint)
    • Line 78: warning: exported method Dataset.MarshalJSON should have comment or be unexported (golint)
    • Line 95: warning: exported method Dataset.UnmarshalJSON should have comment or be unexported (golint)
    • loader/loader.go
    • Line 16: warning: exported var ErrUnequalValues should have comment or be unexported (golint)
    • Line 18: warning: exported type Rower should have comment or be unexported (golint)
    • Line 23: warning: exported type Options should have comment or be unexported (golint)
    • Line 71: warning: exported function Matrix should have comment or be unexported (golint)
    • Line 101: warning: exported function ReadPath should have comment or be unexported (golint)
    • clients/bolt.go
    • Line 25: warning: exported method BoltClient.Datasets should have comment or be unexported (golint)
    • Line 87: warning: exported method BoltClient.Delete should have comment or be unexported (golint)
    • Line 188: warning: exported method BoltClient.Close should have comment or be unexported (golint)
    • Line 192: warning: exported function NewBoltClient should have comment or be unexported (golint)
    • server/server.go
    • Line 16: warning: exported type ErrorHandler should have comment or be unexported (golint)
    • Line 22: warning: exported function HandleError should have comment or be unexported (golint)
    • Line 38: warning: exported type StaticHandler should have comment or be unexported (golint)
    • Line 59: warning: exported function RunServer should have comment or be unexported (golint)
    • cmd/cmd.go
    • Line 18: warning: exported const FitVersion should have comment or be unexported (golint)
    • Line 29: warning: exported function FailOnErr should have comment or be unexported (golint)
    • Line 36: warning: exported function GetClient should have comment or be unexported (golint)
    • Line 57: warning: exported function Run should have comment or be unexported (golint)
    • chart/chart.go
    • Line 13: warning: exported type Config should have comment or be unexported (golint)
    • Line 26: warning: exported type Vector should have comment or be unexported (golint)
    • Line 78: warning: exported function GetLines should have comment or be unexported (golint)
    • Line 104: warning: exported function New should have comment or be unexported (golint)
    • types/functions.go
    • Line 8: warning: exported type Function should have comment or be unexported (golint)
    • Line 32: warning: exported method Function.Apply should have comment or be unexported (golint)
    • clients/http.go
    • Line 55: warning: exported method HTTPClient.Datasets should have comment or be unexported (golint)
    • Line 81: warning: exported method HTTPClient.Delete should have comment or be unexported (golint)
    • Line 91: warning: exported method HTTPClient.Query should have comment or be unexported (golint)
    • Line 108: warning: exported function NewHTTPClient should have comment or be unexported (golint)
    • server/handler.go
    • Line 16: warning: exported type Response should have comment or be unexported (golint)
    • Line 29: warning: exported type Handler should have comment or be unexported (golint)
    • Line 43: warning: exported method Handler.Chart should have comment or be unexported (golint)
    • Line 75: warning: exported method Handler.DatasetAPI should have comment or be unexported (golint)
    • Line 117: warning: exported method Handler.Home should have comment or be unexported (golint)
    • Line 134: warning: exported method Handler.Explore should have comment or be unexported (golint)
    • parser/parser.go
    • Line 10: warning: exported type Parser should have comment or be unexported (golint)
    • Line 14: warning: comment on exported function ParsersFromArgs should be of the form "ParsersFromArgs ..." (golint)
    • Line 42: warning: exported type TimeParser should have comment or be unexported (golint)
    • Line 46: warning: exported method TimeParser.Parse should have comment or be unexported (golint)
    • loader/csv.go
    • Line 8: warning: exported type CSV should have comment or be unexported (golint)
    • Line 15: warning: exported method CSV.Row should have comment or be unexported (golint)
    • Line 24: warning: exported method CSV.Dims should have comment or be unexported (golint)
    • Line 28: warning: exported function NewCSV should have comment or be unexported (golint)
    • loader/xls.go
    • Line 9: warning: error var InvalidXLS should have name of the form ErrFoo (golint)
    • Line 9: warning: exported var InvalidXLS should have comment or be unexported (golint)
    • Line 11: warning: exported type XLS should have comment or be unexported (golint)
    • Line 18: warning: exported method XLS.Row should have comment or be unexported (golint)
    • Line 32: warning: exported method XLS.Dims should have comment or be unexported (golint)
    • Line 36: warning: exported function NewXLS 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!