Preparing report...

Report for github.com/spatialcurrent/go-pipe

A+    Excellent!    Found 22 issues across 49 files

Tweet

gofmt91%

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!


gocyclo97%

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.


golint65%

Golint is a linter for Go source code.

    • go-pipe/pkg/pipe/FunctionWriter.go
    • Line 15: warning: exported function NewFunctionWriter should have comment or be unexported (golint)
    • Line 21: warning: exported method FunctionWriter.WriteObject should have comment or be unexported (golint)
    • Line 25: warning: exported method FunctionWriter.Flush should have comment or be unexported (golint)
    • go-pipe/pkg/pipe/TransactionWriter.go
    • Line 73: warning: exported method TransactionWriter.WriteObject should have comment or be unexported (golint)
    • Line 187: warning: exported method TransactionWriter.WriteObjects should have comment or be unexported (golint)
    • Line 206: warning: exported method TransactionWriter.Flush should have comment or be unexported (golint)
    • Line 210: warning: exported method TransactionWriter.Close should have comment or be unexported (golint)
    • go-pipe/pkg/pipe/MultiIterator.go
    • Line 32: warning: exported method MultiIterator.Push should have comment or be unexported (golint)
    • Line 36: warning: exported method MultiIterator.Next should have comment or be unexported (golint)
    • Line 50: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-pipe/pkg/pipe/SliceWriter.go
    • Line 22: warning: exported function NewSliceWriter should have comment or be unexported (golint)
    • Line 29: warning: exported function NewSliceWriterWithValues should have comment or be unexported (golint)
    • Line 36: warning: exported function NewSliceWriterWithCapacity should have comment or be unexported (golint)
    • Line 43: warning: exported method SliceWriter.WriteObject should have comment or be unexported (golint)
    • Line 54: warning: exported method SliceWriter.WriteObjects should have comment or be unexported (golint)
    • Line 73: warning: exported method SliceWriter.Flush should have comment or be unexported (golint)
    • Line 82: warning: exported method SliceWriter.Values should have comment or be unexported (golint)
    • Line 89: warning: exported method SliceWriter.Iterator should have comment or be unexported (golint)
    • go-pipe/pkg/pipe/BufferWriter.go
    • Line 36: warning: exported method BufferWriter.WriteObject should have comment or be unexported (golint)
    • Line 64: warning: exported method BufferWriter.WriteObjects should have comment or be unexported (golint)
    • Line 100: warning: exported method BufferWriter.Flush should have comment or be unexported (golint)
    • Line 121: warning: exported method BufferWriter.Close should have comment or be unexported (golint)
    • go-pipe/pkg/pipe/ChannelWriter.go
    • Line 19: warning: exported function NewChannelWriter should have comment or be unexported (golint)
    • Line 27: warning: exported method ChannelWriter.WriteObject should have comment or be unexported (golint)
    • Line 32: warning: exported method ChannelWriter.Flush should have comment or be unexported (golint)
    • Line 36: warning: exported method ChannelWriter.Close should have comment or be unexported (golint)
    • go-pipe/pkg/pipe/MultiWriter.go
    • Line 20: warning: exported function NewMultiWriter should have comment or be unexported (golint)
    • Line 26: warning: exported method MultiWriter.WriteObject should have comment or be unexported (golint)
    • Line 35: warning: exported method MultiWriter.WriteObjects should have comment or be unexported (golint)
    • Line 72: warning: exported method MultiWriter.Flush should have comment or be unexported (golint)
    • Line 81: warning: exported method MultiWriter.Close should have comment or be unexported (golint)
    • go-pipe/pkg/pipe/SetWriter.go
    • Line 22: warning: exported function NewSetWriter should have comment or be unexported (golint)
    • Line 29: warning: exported function NewSetWriterWithValues should have comment or be unexported (golint)
    • Line 36: warning: exported method SetWriter.WriteObject should have comment or be unexported (golint)
    • Line 47: warning: exported method SetWriter.WriteObjects should have comment or be unexported (golint)
    • Line 76: warning: exported method SetWriter.SliceInterface should have comment or be unexported (golint)
    • Line 85: warning: exported method SetWriter.SliceType should have comment or be unexported (golint)
    • Line 94: warning: exported method SetWriter.Values should have comment or be unexported (golint)
    • Line 98: warning: exported method SetWriter.Iterator should have comment or be unexported (golint)
    • go-pipe/pkg/pipe/SyncWriter.go
    • Line 30: warning: exported method SyncWriter.WriteObject should have comment or be unexported (golint)
    • Line 36: warning: exported method SyncWriter.WriteObjects should have comment or be unexported (golint)
    • Line 67: warning: exported method SyncWriter.Flush should have comment or be unexported (golint)
    • Line 73: warning: exported method SyncWriter.Close 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!


misspell93%

Misspell Finds commonly misspelled English words