Preparing report...

Report for github.com/moshebe/gtrace

(v1.0.0)

A+    Excellent!    Found 9 issues across 11 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!


golint18%

Golint is a linter for Go source code.

    • pkg/tracer/option.go
    • Line 11: warning: exported type ListOption should have comment or be unexported (golint)
    • Line 13: warning: exported function WithStartTime should have comment or be unexported (golint)
    • Line 18: warning: exported function WithEndTime should have comment or be unexported (golint)
    • Line 23: warning: exported function WithSince should have comment or be unexported (golint)
    • Line 31: warning: exported function WithFilter should have comment or be unexported (golint)
    • Line 44: warning: exported function WithLimit should have comment or be unexported (golint)
    • Line 50: warning: exported function WithOrderBy should have comment or be unexported (golint)
    • Line 58: warning: exported function WithOrderByDuration should have comment or be unexported (golint)
    • Line 61: warning: exported function WithOrderByStart should have comment or be unexported (golint)
    • Line 64: warning: exported function WithOrderByName should have comment or be unexported (golint)
    • Line 68: warning: exported function WithOnlyRootSpanView should have comment or be unexported (golint)
    • pkg/tracer/tracer.go
    • Line 13: warning: exported type Tracer should have comment or be unexported (golint)
    • Line 17: warning: exported function NewTracer should have comment or be unexported (golint)
    • pkg/filter/filter.go
    • Line 9: warning: exported type Filter should have comment or be unexported (golint)
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 30: warning: exported method Filter.Pass should have comment or be unexported (golint)
    • Line 37: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • pkg/span/span.go
    • Line 14: warning: exported function Names should have comment or be unexported (golint)
    • Line 31: warning: exported function Filter should have comment or be unexported (golint)
    • Line 43: warning: exported function Sort should have comment or be unexported (golint)
    • Line 49: warning: exported function FilterLabels should have comment or be unexported (golint)
    • Line 61: warning: exported function Format should have comment or be unexported (golint)
    • Line 88: warning: exported function ListRootSpans 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!