Preparing report...

Report for github.com/raohwork/ctxroutines

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


golint53%

Golint is a linter for Go source code.

    • ctxroutines/stateful.go
    • Line 11: warning: exported type StatefulRunner should have comment or be unexported (golint)
    • Line 33: warning: error should be the last type when returning multiple items (golint)
    • Line 66: warning: exported function NewStatefulRunner should have comment or be unexported (golint)
    • ctxroutines/counter.go
    • Line 12: warning: exported type Counter should have comment or be unexported (golint)
    • Line 17: warning: exported type NoCancelCounter should have comment or be unexported (golint)
    • Line 19: warning: exported method NoCancelCounter.Cancel should have comment or be unexported (golint)
    • Line 20: warning: exported method NoCancelCounter.Run should have comment or be unexported (golint)
    • Line 30: warning: exported function FuncCounter should have comment or be unexported (golint)
    • Line 48: warning: exported type RecordedRunner should have comment or be unexported (golint)
    • Line 53: warning: exported function Recorded should have comment or be unexported (golint)
    • Line 58: warning: exported function TryAtMostWithChan should have comment or be unexported (golint)
    • Line 75: warning: exported function TryAtMost should have comment or be unexported (golint)
    • ctxroutines/err.go
    • Line 12: warning: exported function CancelAll should have comment or be unexported (golint)
    • Line 20: warning: exported function Run should have comment or be unexported (golint)
    • Line 36: warning: exported function FirstErr should have comment or be unexported (golint)
    • Line 48: warning: exported function SomeErr should have comment or be unexported (golint)
    • Line 70: warning: exported function AnyErr should have comment or be unexported (golint)
    • ctxroutines/looping.go
    • Line 44: warning: exported function Retry should have comment or be unexported (golint)
    • Line 48: warning: exported function RetryWithCB should have comment or be unexported (golint)
    • Line 64: warning: exported function RetryWithChan should have comment or be unexported (golint)
    • Line 68: warning: exported function TilErr should have comment or be unexported (golint)
    • Line 84: warning: exported function Loop should have comment or be unexported (golint)
    • ctxroutines/once_within.go
    • Line 19: warning: exported function OnceWithin should have comment or be unexported (golint)
    • Line 26: warning: exported function OnceSuccessWithin should have comment or be unexported (golint)
    • Line 33: warning: exported function OnceFailedWithin should have comment or be unexported (golint)
    • ctxroutines/run_at_least.go
    • Line 72: warning: exported function RunAtLeastSuccess should have comment or be unexported (golint)
    • Line 76: warning: exported function RunAtLeastFailed should have comment or be unexported (golint)
    • ctxroutines/runner.go
    • Line 9: warning: exported type Runner should have comment or be unexported (golint)
    • Line 14: warning: exported type NoCancelRunner should have comment or be unexported (golint)
    • Line 16: warning: exported method NoCancelRunner.Cancel should have comment or be unexported (golint)
    • Line 17: warning: exported method NoCancelRunner.Run should have comment or be unexported (golint)
    • Line 27: warning: exported function FuncRunner should have comment or be unexported (golint)
    • Line 34: warning: exported function CTXRunner 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!