Preparing report...

Report for github.com/chenjiandongx/mandodb

A+    Excellent!    Found 8 issues across 17 files

Tweet

gofmt94%

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!


golint58%

Golint is a linter for Go source code.

    • mandodb/label.go
    • Line 36: warning: exported method Label.MarshalName should have comment or be unexported (golint)
    • Line 230: warning: exported method LabelSet.Sorted should have comment or be unexported (golint)
    • mandodb/metadata.go
    • Line 29: warning: exported type MetaSerializerType should have comment or be unexported (golint)
    • Line 32: warning: exported const BinaryMetaSerializer should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type MetaSerializer should have comment or be unexported (golint)
    • mandodb/segment.go
    • Line 10: warning: exported type SegmentType should have comment or be unexported (golint)
    • Line 13: warning: exported const DiskSegmentType should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Segment should have comment or be unexported (golint)
    • Line 31: warning: exported type Desc should have comment or be unexported (golint)
    • mandodb/tsdb.go
    • Line 50: warning: exported type Option should have comment or be unexported (golint)
    • Line 170: warning: exported type TSDB should have comment or be unexported (golint)
    • Line 205: warning: exported method TSDB.InsertRows should have comment or be unexported (golint)
    • Line 273: warning: exported type MetricRet should have comment or be unexported (golint)
    • Line 278: warning: exported method TSDB.QueryRange should have comment or be unexported (golint)
    • Line 323: warning: exported method TSDB.QuerySeries should have comment or be unexported (golint)
    • Line 352: warning: exported method TSDB.QueryLabelValues should have comment or be unexported (golint)
    • Line 372: warning: exported method TSDB.Close should have comment or be unexported (golint)
    • Line 465: warning: exported function OpenTSDB should have comment or be unexported (golint)
    • mandodb/pkg/mmap/mmap.go
    • Line 53: warning: exported method MmapFile.File should have comment or be unexported (golint)
    • Line 57: warning: exported method MmapFile.Bytes should have comment or be unexported (golint)
    • mandodb/pkg/sortedlist/list.go
    • Line 187: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 199: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!