Preparing report...

Report for github.com/rikimaru0345/sdk

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


golint74%

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/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 AlertCondition should have comment or be unexported (golint)
    • Line 108: warning: exported type Alert should have comment or be unexported (golint)
    • Line 119: warning: exported type GraphPanel should have comment or be unexported (golint)
    • Line 166: warning: exported type Threshold should have comment or be unexported (golint)
    • Line 184: warning: exported type Tooltip should have comment or be unexported (golint)
    • Line 190: warning: exported type TablePanel should have comment or be unexported (golint)
    • Line 201: warning: exported type TextPanel should have comment or be unexported (golint)
    • Line 213: warning: exported type SinglestatPanel should have comment or be unexported (golint)
    • Line 249: warning: exported type DashlistPanel should have comment or be unexported (golint)
    • Line 255: warning: exported type PluginlistPanel should have comment or be unexported (golint)
    • Line 258: warning: exported type AlertlistPanel should have comment or be unexported (golint)
    • Line 267: warning: exported type RowPanel should have comment or be unexported (golint)
    • Line 270: warning: exported type CustomPanel should have comment or be unexported (golint)
    • Line 273: warning: comment on exported type Axis should be of the form "Axis ..." (with optional leading article) (golint)
    • Line 273: warning: comment on exported type SeriesOverride should be of the form "SeriesOverride ..." (with optional leading article) (golint)
    • Line 320: warning: comment on exported type Column should be of the form "Column ..." (with optional leading article) (golint)
    • Line 320: warning: comment on exported type ColumnStyle should be of the form "ColumnStyle ..." (with optional leading article) (golint)
    • Line 339: warning: comment on exported type ValueMap should be of the form "ValueMap ..." (with optional leading article) (golint)
    • Line 346: warning: comment on exported type Target should be of the form "Target ..." (with optional leading article) (golint)
    • Line 396: warning: exported type MapType should have comment or be unexported (golint)
    • Line 401: warning: exported type RangeMap should have comment or be unexported (golint)
    • Line 509: warning: exported function NewAlertlist should have comment or be unexported (golint)
    • Line 590: warning: comment on exported method Panel.RepeatDatasourcesForEachTarget should be of the form "RepeatDatasourcesForEachTarget ..." (golint)
    • Line 667: warning: exported method Panel.UnmarshalJSON should have comment or be unexported (golint)
    • Line 713: warning: exported method Panel.MarshalJSON should have comment or be unexported (golint)
    • sdk/rest-org.go
    • Line 267: warning: comment on exported method Client.UpdateActualOrgUser should be of the form "UpdateActualOrgUser ..." (golint)
    • Line 302: warning: comment on exported method Client.AddOrgUser should be of the form "AddOrgUser ..." (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 70: warning: exported type Time should have comment or be unexported (golint)
    • Line 74: warning: exported type Timepicker should have comment or be unexported (golint)
    • Line 79: warning: exported type Templating should have comment or be unexported (golint)
    • Line 82: warning: exported type TemplateVar should have comment or be unexported (golint)
    • Line 102: warning: comment on exported type Option should be of the form "Option ..." (with optional leading article) (golint)
    • Line 108: warning: comment on exported type Current should be of the form "Current ..." (with optional leading article) (golint)
    • Line 114: warning: exported type Annotation should have comment or be unexported (golint)
    • Line 151: warning: exported method Height.UnmarshalJSON should have comment or be unexported (golint)
    • Line 166: 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 190: warning: exported method Board.AddTags should have comment or be unexported (golint)
    • Line 203: warning: exported method Board.HasTag should have comment or be unexported (golint)
    • Line 212: warning: exported method Board.AddRow should have comment or be unexported (golint)
    • Line 226: 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!