Preparing report...

Report for github.com/bitly/tsplot

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


golint28%

Golint is a linter for Go source code.

    • tsplot/tsplot/color_palettes.go
    • Line 9: warning: exported type ColorPalette should have comment or be unexported (golint)
    • Line 17: warning: don't use underscores in Go names; var DefaultColors_HighContrast should be DefaultColorsHighContrast (golint)
    • Line 17: warning: exported var DefaultColors_HighContrast should have comment or be unexported (golint)
    • tsplot/tsplot/options.go
    • Line 9: warning: exported type PlotOption should have comment or be unexported (golint)
    • Line 11: warning: exported function WithForeground should have comment or be unexported (golint)
    • Line 26: warning: exported function WithBackground should have comment or be unexported (golint)
    • Line 32: warning: exported function WithTitle should have comment or be unexported (golint)
    • Line 38: warning: exported function WithGrid should have comment or be unexported (golint)
    • Line 47: warning: exported function WithLegend should have comment or be unexported (golint)
    • Line 53: warning: exported function WithXAxisName should have comment or be unexported (golint)
    • Line 59: warning: exported function WithYAxisName should have comment or be unexported (golint)
    • Line 65: warning: exported function WithXTimeTicks should have comment or be unexported (golint)
    • Line 73: warning: exported function ApplyDefaultHighContrast should have comment or be unexported (golint)
    • tsplot/tsplot/query.go
    • Line 15: warning: comment on exported const DefaultQueryFilter should be of the form "DefaultQueryFilter ..." (golint)
    • Line 40: warning: comment on exported method MetricQuery.SetReduce should be of the form "SetReduce ..." (golint)
    • tsplot/tscli/main.go
    • Line 22: warning: exported const GAP should have comment or be unexported (golint)
    • Line 24: warning: exported var GoogleCloudMonitoringClient 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!