Preparing report...

Report for github.com/wavefronthq/wavefront-opentracing-sdk-go

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


golint54%

Golint is a linter for Go source code.

    • wavefront-opentracing-sdk-go/tracer/tracer.go
    • Line 108: warning: exported method WavefrontTracer.StartSpan should have comment or be unexported (golint)
    • Line 213: warning: exported method WavefrontTracer.Inject should have comment or be unexported (golint)
    • Line 232: warning: exported method WavefrontTracer.Extract should have comment or be unexported (golint)
    • wavefront-opentracing-sdk-go/tracer/w3c.go
    • Line 25: warning: exported method PropagatorW3C.Inject should have comment or be unexported (golint)
    • Line 54: warning: exported method PropagatorW3C.Extract should have comment or be unexported (golint)
    • Line 127: warning: exported function FromUUID should have comment or be unexported (golint)
    • wavefront-opentracing-sdk-go/reporter/reporter.go
    • Line 63: warning: comment on exported function BufferSize should be of the form "BufferSize ..." (golint)
    • Line 71: warning: comment on exported function LogPercent should be of the form "LogPercent ..." (golint)
    • Line 83: warning: comment on exported function RedMetricsCustomTagKeys should be of the form "RedMetricsCustomTagKeys ..." (golint)
    • wavefront-opentracing-sdk-go/tracer/generator.go
    • Line 12: warning: exported type Generator should have comment or be unexported (golint)
    • Line 17: warning: exported type GeneratorUUID should have comment or be unexported (golint)
    • Line 21: warning: exported function NewGeneratorUUID should have comment or be unexported (golint)
    • Line 27: warning: exported method GeneratorUUID.TraceID should have comment or be unexported (golint)
    • Line 31: warning: exported method GeneratorUUID.SpanID should have comment or be unexported (golint)
    • Line 35: warning: exported type GeneratorW3C should have comment or be unexported (golint)
    • Line 39: warning: exported function NewGeneratorW3C should have comment or be unexported (golint)
    • Line 45: warning: exported method GeneratorW3C.TraceID should have comment or be unexported (golint)
    • Line 49: warning: exported method GeneratorW3C.SpanID should have comment or be unexported (golint)
    • wavefront-opentracing-sdk-go/tracer/jaeger_wavefront.go
    • Line 13: warning: exported const BAGGAGE_PREFIX should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type JaegerWavefrontPropagator should have comment or be unexported (golint)
    • Line 25: warning: exported type JaegerOption should have comment or be unexported (golint)
    • Line 27: warning: exported function WithBaggagePrefix should have comment or be unexported (golint)
    • Line 33: warning: exported function WithTraceIdHeader should have comment or be unexported (golint)
    • Line 39: warning: exported function NewJaegerWavefrontPropagator should have comment or be unexported (golint)
    • Line 52: warning: exported method JaegerWavefrontPropagator.Inject should have comment or be unexported (golint)
    • Line 73: warning: exported method JaegerWavefrontPropagator.Extract should have comment or be unexported (golint)
    • Line 179: warning: exported function ToUUID should have comment or be unexported (golint)

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!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!