Preparing report...

Report for github.com/gogap/flow

A    Great!    Found 3 issues across 3 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!


golint0%

Golint is a linter for Go source code.

    • flow/flow.go
    • Line 16: warning: exported type Flow should have comment or be unexported (golint)
    • Line 23: warning: exported type FlowTrans should have comment or be unexported (golint)
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported method Flow.RegisterHandler should have comment or be unexported (golint)
    • Line 64: warning: exported method Flow.ListHandlers should have comment or be unexported (golint)
    • Line 68: warning: exported method Flow.Begin should have comment or be unexported (golint)
    • Line 78: warning: context.Context should be the first parameter of a function (golint)
    • Line 78: warning: exported method Flow.Run should have comment or be unexported (golint)
    • Line 96: warning: exported function RegisterHandler should have comment or be unexported (golint)
    • Line 100: warning: exported function ListHandlers should have comment or be unexported (golint)
    • Line 104: warning: context.Context should be the first parameter of a function (golint)
    • Line 104: warning: exported function Run should have comment or be unexported (golint)
    • Line 108: warning: exported function Begin should have comment or be unexported (golint)
    • Line 112: warning: exported method FlowTrans.Then should have comment or be unexported (golint)
    • Line 147: warning: exported method FlowTrans.Subscribe should have comment or be unexported (golint)
    • Line 162: warning: exported method FlowTrans.Commit should have comment or be unexported (golint)
    • Line 177: warning: exported method FlowTrans.Output should have comment or be unexported (golint)
    • flow/handler.go
    • Line 8: warning: exported type SubscriberFunc should have comment or be unexported (golint)
    • Line 10: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 12: warning: exported method HandlerFunc.Run should have comment or be unexported (golint)
    • Line 16: warning: exported method HandlerFunc.Then should have comment or be unexported (golint)
    • Line 40: warning: exported method HandlerFunc.Subscribe should have comment or be unexported (golint)
    • flow/output.go
    • Line 12: warning: exported type NameValue should have comment or be unexported (golint)
    • Line 18: warning: exported type Output should have comment or be unexported (golint)
    • Line 25: warning: exported method Output.List should have comment or be unexported (golint)
    • Line 46: warning: exported method Output.Append should have comment or be unexported (golint)
    • Line 67: warning: exported function AppendOutput should have comment or be unexported (golint)
    • Line 85: warning: exported function ListOutput should have comment or be unexported (golint)
    • Line 99: warning: exported function FindOutput should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign66%

IneffAssign detects ineffectual assignments in Go code.

    • flow/flow.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/gogap/config (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/gogap/context (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)

misspell66%

Misspell Finds commonly misspelled English words