Preparing report...

Report for github.com/observIQ/carbon

A+    Excellent!    Found 30 issues across 237 files

Tweet

gofmt97%

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!


gocyclo98%

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.


golint91%

Golint is a linter for Go source code.

    • carbon/plugin/config.go
    • Line 25: warning: comment on exported method Config.Build should be of the form "Build ..." (golint)
    • Line 74: warning: exported method Config.UnmarshalJSON should have comment or be unexported (golint)
    • carbon/operator/buffer/buffer.go
    • Line 74: warning: exported method Config.MarshalYAML should have comment or be unexported (golint)
    • Line 78: warning: exported method Config.MarshalJSON should have comment or be unexported (golint)
    • Line 82: warning: exported type Clearer should have comment or be unexported (golint)
    • carbon/operator/buffer/disk.go
    • Line 318: warning: exported method DiskBuffer.MaxChunkSize should have comment or be unexported (golint)
    • Line 324: warning: exported method DiskBuffer.MaxChunkDelay should have comment or be unexported (golint)
    • Line 330: warning: exported method DiskBuffer.SetMaxChunkSize should have comment or be unexported (golint)
    • Line 336: warning: exported method DiskBuffer.SetMaxChunkDelay should have comment or be unexported (golint)
    • carbon/operator/buffer/memory.go
    • Line 149: warning: exported method MemoryBuffer.MaxChunkSize should have comment or be unexported (golint)
    • Line 155: warning: exported method MemoryBuffer.MaxChunkDelay should have comment or be unexported (golint)
    • Line 161: warning: exported method MemoryBuffer.SetMaxChunkSize should have comment or be unexported (golint)
    • Line 167: warning: exported method MemoryBuffer.SetMaxChunkDelay should have comment or be unexported (golint)
    • carbon/operator/helper/bytesize.go
    • Line 11: warning: exported type ByteSize should have comment or be unexported (golint)
    • Line 13: warning: exported method ByteSize.UnmarshalJSON should have comment or be unexported (golint)
    • Line 19: warning: exported method ByteSize.UnmarshalYAML should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words