Preparing report...

Report for github.com/spoof/go-grafana

A+    Excellent!    Found 10 issues across 25 files

Tweet

gofmt92%

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!


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!


golint68%

Golint is a linter for Go source code.

    • go-grafana/grafana/panel/graph.go
    • Line 35: warning: exported const NoSort should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported const Individual should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported const ConnectedNullPointMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported const CustomThresholdMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 67: warning: exported const EqualSignOp should have comment (or a comment on this block) or be unexported (golint)
    • Line 125: warning: exported type DrawOptions should have comment or be unexported (golint)
    • Line 150: warning: exported type GraphYaxesOptions should have comment or be unexported (golint)
    • Line 155: warning: exported method GraphYaxesOptions.MarshalJSON should have comment or be unexported (golint)
    • Line 160: warning: exported method GraphYaxesOptions.UnmarshalJSON should have comment or be unexported (golint)
    • Line 175: warning: exported type GraphYAxis should have comment or be unexported (golint)
    • Line 184: warning: exported type GraphSeriesOverride should have comment or be unexported (golint)
    • Line 206: warning: exported type Threshold should have comment or be unexported (golint)
    • go-grafana/grafana/panel/options.go
    • Line 21: warning: exported type GeneralOptions should have comment or be unexported (golint)
    • Line 34: warning: exported const PanelLinkAbsolute should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type PanelLink should have comment or be unexported (golint)
    • Line 67: warning: exported type TimeRangeOptions should have comment or be unexported (golint)
    • go-grafana/grafana/panel/singlestat.go
    • Line 22: warning: exported const ValueToTextType should have comment (or a comment on this block) or be unexported (golint)
    • Line 85: warning: exported type ValueMappings should have comment or be unexported (golint)
    • Line 91: warning: exported type ValueToTextMapping should have comment or be unexported (golint)
    • Line 110: warning: exported type RangeToTextMapping should have comment or be unexported (golint)
    • go-grafana/grafana/dashboard_vars.go
    • Line 20: warning: exported type Variables should have comment or be unexported (golint)
    • Line 56: warning: exported type Variable should have comment or be unexported (golint)
    • Line 170: warning: exported const NoHide should have comment (or a comment on this block) or be unexported (golint)
    • Line 177: warning: exported type IntervalVariable should have comment or be unexported (golint)
    • Line 208: warning: exported const NoSort should have comment (or a comment on this block) or be unexported (golint)
    • Line 215: warning: exported type QueryVariable should have comment or be unexported (golint)
    • Line 230: warning: exported function NewQueryVar should have comment or be unexported (golint)
    • Line 242: warning: exported type DatasourceVariable should have comment or be unexported (golint)
    • Line 253: warning: exported type CustomVariable 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!