Preparing report...

Report for github.com/open-telemetry/opentelemetry-collector

A+    Excellent!    Found 41 issues across 428 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!


golint90%

Golint is a linter for Go source code.

    • opentelemetry-collector/model/pdata/metrics.go
    • Line 127: warning: exported const MetricDataTypeNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 284: warning: comment on exported const MetricDataPointFlagNoRecordedValue should be of the form "MetricDataPointFlagNoRecordedValue ..." (golint)
    • Line 292: warning: exported const MetricValueTypeNone should have comment (or a comment on this block) or be unexported (golint)
    • opentelemetry-collector/internal/middleware/compression.go
    • Line 30: warning: exported type CompressRoundTripper should have comment or be unexported (golint)
    • Line 34: warning: exported function NewCompressRoundTripper should have comment or be unexported (golint)
    • Line 40: warning: exported method CompressRoundTripper.RoundTrip should have comment or be unexported (golint)
    • Line 81: warning: exported type ErrorHandler should have comment or be unexported (golint)
    • Line 87: warning: exported type DecompressorOption should have comment or be unexported (golint)
    • Line 89: warning: exported function WithErrorHandler should have comment or be unexported (golint)
    • opentelemetry-collector/extension/experimental/storage/storage.go
    • Line 68: warning: exported const Get should have comment (or a comment on this block) or be unexported (golint)
    • Line 82: warning: exported type Operation should have comment or be unexported (golint)
    • Line 84: warning: exported function SetOperation should have comment or be unexported (golint)
    • Line 92: warning: exported function GetOperation should have comment or be unexported (golint)
    • Line 99: warning: exported function DeleteOperation should have comment or be unexported (golint)

gocyclo99%

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.


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!