Preparing report...

Report for github.com/harmony-development/sentry-go

A+    Excellent!    Found 13 issues across 62 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!


gocyclo96%

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.


golint82%

Golint is a linter for Go source code.

    • sentry-go/example/with_extra/main.go
    • Line 33: warning: exported type CustomComplexError should have comment or be unexported (golint)
    • Line 42: warning: exported method CustomComplexError.GimmeMoreData should have comment or be unexported (golint)
    • Line 46: warning: exported type ExtractExtra should have comment or be unexported (golint)
    • Line 48: warning: exported method ExtractExtra.Name should have comment or be unexported (golint)
    • Line 52: warning: exported method ExtractExtra.SetupOnce should have comment or be unexported (golint)
    • sentry-go/fasthttp/sentryfasthttp.go
    • Line 18: warning: exported const ContextKey should have comment or be unexported (golint)
    • Line 21: warning: exported type Handler should have comment or be unexported (golint)
    • Line 27: warning: exported type Options should have comment or be unexported (golint)
    • sentry-go/traces_sampler.go
    • Line 149: warning: exported method TracesSamplerFunc.Sample should have comment or be unexported (golint)
    • Line 159: warning: exported method UniformTracesSampler.Sample should have comment or be unexported (golint)
    • sentry-go/tracing.go
    • Line 261: warning: exported method Span.MarshalJSON should have comment or be unexported (golint)
    • Line 360: warning: exported method TraceID.Hex should have comment or be unexported (golint)
    • Line 370: warning: exported method TraceID.MarshalText should have comment or be unexported (golint)
    • Line 377: warning: exported method SpanID.Hex should have comment or be unexported (golint)
    • Line 387: warning: exported method SpanID.MarshalText should have comment or be unexported (golint)
    • Line 417: warning: exported const SpanStatusUndefined should have comment (or a comment on this block) or be unexported (golint)
    • Line 465: warning: exported method SpanStatus.MarshalJSON should have comment or be unexported (golint)
    • Line 484: warning: exported method TraceContext.MarshalJSON should have comment or be unexported (golint)
    • Line 534: warning: comment on exported function TransactionName should be of the form "TransactionName ..." (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!