Preparing report...

Report for github.com/Focinfi/go-pipeline

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


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!


golint54%

Golint is a linter for Go source code.

    • go-pipeline/handler.go
    • Line 8: warning: exported type HandleStatus should have comment or be unexported (golint)
    • Line 11: warning: exported const HandleStatusOK should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type Handler should have comment or be unexported (golint)
    • Line 51: warning: exported type HandlerBuilder should have comment or be unexported (golint)
    • Line 64: warning: exported type HandlerBuilderGetter should have comment or be unexported (golint)
    • Line 71: warning: exported method MapHandlerBuilderGetter.GetHandlerBuilderOK should have comment or be unexported (golint)
    • Line 76: warning: exported type HandlerGetter should have comment or be unexported (golint)
    • Line 83: warning: exported method MapHandlerGetter.GetHandlerOK should have comment or be unexported (golint)
    • go-pipeline/line.go
    • Line 9: warning: exported type Line should have comment or be unexported (golint)
    • Line 25: warning: comment on exported method Line.HandleVerbosely should be of the form "HandleVerbosely ..." (golint)
    • Line 35: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • go-pipeline/parallel.go
    • Line 10: warning: exported type Parallel should have comment or be unexported (golint)
    • Line 14: warning: exported function NewParallel should have comment or be unexported (golint)
    • go-pipeline/pipe.go
    • Line 10: warning: exported type PipeType should have comment or be unexported (golint)
    • Line 13: warning: exported const PipeTypeSingle should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type Pipe should have comment or be unexported (golint)
    • Line 50: warning: exported function NewSinglePipes should have comment or be unexported (golint)
    • Line 55: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 62: warning: exported function NewSinglePipe should have comment or be unexported (golint)
    • Line 75: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 93: warning: exported function NewParallelPipe should have comment or be unexported (golint)
    • go-pipeline/errors.go
    • Line 9: warning: exported var ErrBuildHandlerFailed should have comment or be unexported (golint)
    • Line 18: warning: exported function MakeErrHandleTimeout 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!