Preparing report...

Report for github.com/vlorc/bce-tsdb-go

C    Needs some work    Found 3 issues across 3 files

Tweet

gofmt33%

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!


golint0%

Golint is a linter for Go source code.

    • bce-tsdb-go/client.go
    • Line 13: warning: exported const URI_DATAPOINT should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type Client should have comment or be unexported (golint)
    • Line 24: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 50: warning: exported method Client.WriteDatapoint should have comment or be unexported (golint)
    • Line 54: warning: don't use underscores in Go names; method __get should be _Get (golint)
    • Line 73: warning: don't use underscores in Go names; method __post should be _Post (golint)
    • Line 102: warning: exported method Client.ListMetric should have comment or be unexported (golint)
    • Line 107: warning: exported method Client.ListFieldByMetric should have comment or be unexported (golint)
    • Line 112: warning: exported method Client.ListTagByMetric should have comment or be unexported (golint)
    • Line 117: warning: exported method Client.ListDatapointByQuery should have comment or be unexported (golint)
    • Line 126: warning: exported method Client.ListRowBySql should have comment or be unexported (golint)
    • Line 135: warning: exported method Client.GeneratePresignedUrl should have comment or be unexported (golint)
    • bce-tsdb-go/client_test.go
    • Line 5: warning: don't use underscores in Go names; var __url should be _URL (golint)
    • Line 6: warning: don't use underscores in Go names; var __ak should be _Ak (golint)
    • Line 7: warning: don't use underscores in Go names; var __sk should be _Sk (golint)
    • bce-tsdb-go/model.go
    • Line 3: warning: exported type ValueType should have comment or be unexported (golint)
    • Line 6: warning: exported const Long should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type Tags should have comment or be unexported (golint)
    • Line 15: warning: exported type Datapoint should have comment or be unexported (golint)
    • Line 25: warning: exported type WriteDataPointArgs should have comment or be unexported (golint)
    • Line 29: warning: exported type ListMetricsResult should have comment or be unexported (golint)
    • Line 33: warning: exported type Field should have comment or be unexported (golint)
    • Line 37: warning: exported type ListFieldResult should have comment or be unexported (golint)
    • Line 41: warning: exported type TagValues should have comment or be unexported (golint)
    • Line 43: warning: exported type ListTagsResult should have comment or be unexported (golint)
    • Line 47: warning: exported type Query should have comment or be unexported (golint)
    • Line 62: warning: exported type Queries should have comment or be unexported (golint)
    • Line 64: warning: exported type ListDatapointArgs should have comment or be unexported (golint)
    • Line 69: warning: exported type ListDatapointResult should have comment or be unexported (golint)
    • Line 73: warning: exported type QueryResult should have comment or be unexported (golint)
    • Line 85: warning: exported type Group should have comment or be unexported (golint)
    • Line 90: warning: exported type GroupInfo should have comment or be unexported (golint)
    • Line 95: warning: exported type Fill should have comment or be unexported (golint)
    • Line 101: warning: exported type Aggregator should have comment or be unexported (golint)
    • Line 110: warning: exported type GroupBy should have comment or be unexported (golint)
    • Line 115: warning: exported type Filter should have comment or be unexported (golint)
    • Line 124: warning: exported type FieldFilter should have comment or be unexported (golint)
    • Line 129: warning: exported type TagFilter should have comment or be unexported (golint)
    • Line 136: warning: exported type Column should have comment or be unexported (golint)
    • Line 140: warning: exported type Value should have comment or be unexported (golint)
    • Line 141: warning: exported type Raw should have comment or be unexported (golint)
    • Line 143: warning: exported method Value.Timestamp should have comment or be unexported (golint)
    • Line 153: warning: exported method Value.Value should have comment or be unexported (golint)
    • Line 157: warning: exported method Value.Tag should have comment or be unexported (golint)
    • Line 161: warning: exported type RowResult 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!