Preparing report...

Report for github.com/galamiram/sdk

A+    Excellent!    Found 11 issues across 43 files

Tweet

gofmt97%

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!


gocyclo97%

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.


golint81%

Golint is a linter for Go source code.

    • sdk/datasource.go
    • Line 42: warning: comment on exported type DatasourceType should be of the form "DatasourceType ..." (with optional leading article) (golint)
    • sdk/org.go
    • Line 21: warning: exported type Org should have comment or be unexported (golint)
    • Line 26: warning: exported type OrgUser should have comment or be unexported (golint)
    • sdk/panel.go
    • Line 40: warning: exported const MixedSource should have comment or be unexported (golint)
    • Line 59: warning: exported type CommonPanel should have comment or be unexported (golint)
    • Line 91: warning: exported type AlertEvaluator should have comment or be unexported (golint)
    • Line 95: warning: exported type AlertOperator should have comment or be unexported (golint)
    • Line 98: warning: exported type AlertQuery should have comment or be unexported (golint)
    • Line 101: warning: exported type AlertReducer should have comment or be unexported (golint)
    • Line 105: warning: exported type AlertCondition should have comment or be unexported (golint)
    • Line 112: warning: exported type Alert should have comment or be unexported (golint)
    • Line 124: warning: exported type GraphPanel should have comment or be unexported (golint)
    • Line 158: warning: exported type Threshold should have comment or be unexported (golint)
    • Line 176: warning: exported type Tooltip should have comment or be unexported (golint)
    • Line 182: warning: exported type TablePanel should have comment or be unexported (golint)
    • Line 190: warning: exported type TextPanel should have comment or be unexported (golint)
    • Line 199: warning: exported type SinglestatPanel should have comment or be unexported (golint)
    • Line 222: warning: exported type DashlistPanel should have comment or be unexported (golint)
    • Line 228: warning: exported type PluginlistPanel should have comment or be unexported (golint)
    • Line 231: warning: exported type AlertlistPanel should have comment or be unexported (golint)
    • Line 240: warning: exported type RowPanel should have comment or be unexported (golint)
    • Line 244: warning: exported type CustomPanel should have comment or be unexported (golint)
    • Line 247: warning: comment on exported type Axis should be of the form "Axis ..." (with optional leading article) (golint)
    • Line 247: warning: comment on exported type Legend should be of the form "Legend ..." (with optional leading article) (golint)
    • Line 247: warning: comment on exported type SeriesOverride should be of the form "SeriesOverride ..." (with optional leading article) (golint)
    • Line 247: warning: comment on exported type Sort should be of the form "Sort ..." (with optional leading article) (golint)
    • Line 313: warning: comment on exported type Column should be of the form "Column ..." (with optional leading article) (golint)
    • Line 313: warning: comment on exported type ColumnStyle should be of the form "ColumnStyle ..." (with optional leading article) (golint)
    • Line 334: warning: comment on exported type Gauge should be of the form "Gauge ..." (with optional leading article) (golint)
    • Line 334: warning: comment on exported type SparkLine should be of the form "SparkLine ..." (with optional leading article) (golint)
    • Line 334: warning: comment on exported type ValueMap should be of the form "ValueMap ..." (with optional leading article) (golint)
    • Line 358: warning: comment on exported type Target should be of the form "Target ..." (with optional leading article) (golint)
    • Line 441: warning: exported type MapType should have comment or be unexported (golint)
    • Line 446: warning: exported type RangeMap should have comment or be unexported (golint)
    • Line 554: warning: exported function NewAlertlist should have comment or be unexported (golint)
    • Line 635: warning: comment on exported method Panel.RepeatDatasourcesForEachTarget should be of the form "RepeatDatasourcesForEachTarget ..." (golint)
    • Line 712: warning: exported method Panel.UnmarshalJSON should have comment or be unexported (golint)
    • Line 758: warning: exported method Panel.MarshalJSON should have comment or be unexported (golint)
    • sdk/row.go
    • Line 35: warning: exported method Row.Add should have comment or be unexported (golint)
    • Line 41: warning: exported method Row.AddDashlist should have comment or be unexported (golint)
    • Line 49: warning: exported method Row.AddGraph should have comment or be unexported (golint)
    • Line 57: warning: exported method Row.AddTable should have comment or be unexported (golint)
    • Line 65: warning: exported method Row.AddText should have comment or be unexported (golint)
    • Line 73: warning: exported method Row.AddSinglestat should have comment or be unexported (golint)
    • Line 81: warning: exported method Row.AddCustom should have comment or be unexported (golint)
    • sdk/user.go
    • Line 22: warning: exported type User should have comment or be unexported (golint)
    • Line 33: warning: exported type UserRole should have comment or be unexported (golint)
    • Line 38: warning: exported type UserPermissions should have comment or be unexported (golint)
    • Line 42: warning: exported type PageUsers should have comment or be unexported (golint)
    • sdk/board.go
    • Line 69: warning: exported type Time should have comment or be unexported (golint)
    • Line 73: warning: exported type Timepicker should have comment or be unexported (golint)
    • Line 78: warning: exported type Templating should have comment or be unexported (golint)
    • Line 81: warning: exported type TemplateVar should have comment or be unexported (golint)
    • Line 101: warning: comment on exported type Option should be of the form "Option ..." (with optional leading article) (golint)
    • Line 107: warning: comment on exported type Current should be of the form "Current ..." (with optional leading article) (golint)
    • Line 113: warning: exported type Annotation should have comment or be unexported (golint)
    • Line 150: warning: exported method Height.UnmarshalJSON should have comment or be unexported (golint)
    • Line 165: warning: exported function NewBoard should have comment or be unexported (golint)
    • Line 178: warning: exported method Board.RemoveTags should have comment or be unexported (golint)
    • Line 192: warning: exported method Board.AddTags should have comment or be unexported (golint)
    • Line 206: warning: exported method Board.HasTag should have comment or be unexported (golint)
    • Line 215: warning: exported method Board.AddRow should have comment or be unexported (golint)
    • Line 229: warning: exported method Board.UpdateSlug should have comment or be unexported (golint)
    • sdk/custom-types.go
    • Line 30: warning: exported type BoolString should have comment or be unexported (golint)
    • Line 35: warning: exported method BoolString.UnmarshalJSON should have comment or be unexported (golint)
    • Line 60: warning: exported method BoolString.MarshalJSON should have comment or be unexported (golint)
    • Line 71: warning: exported type BoolInt should have comment or be unexported (golint)
    • Line 76: warning: exported method BoolInt.UnmarshalJSON should have comment or be unexported (golint)
    • Line 98: warning: exported method BoolInt.MarshalJSON should have comment or be unexported (golint)
    • Line 105: warning: exported function NewIntString should have comment or be unexported (golint)
    • Line 150: warning: exported function NewFloatString 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!


misspell97%

Misspell Finds commonly misspelled English words