Preparing report...

Report for github.com/jjeffcaii/reactor-go

A+    Excellent!    Found 24 issues across 103 files

Tweet

gofmt99%

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!


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!


golint77%

Golint is a linter for Go source code.

    • reactor-go/mono/mono.go
    • Line 11: warning: comment on exported type Any should be of the form "Any ..." (with optional leading article) (golint)
    • Line 11: warning: comment on exported type Disposable should be of the form "Disposable ..." (with optional leading article) (golint)
    • Line 17: warning: exported type FlatMapper should have comment or be unexported (golint)
    • Line 18: warning: exported type Combinator should have comment or be unexported (golint)
    • reactor-go/hooks/hooks.go
    • Line 11: warning: exported type Hooks should have comment or be unexported (golint)
    • Line 17: warning: exported method Hooks.OnNextDrop should have comment or be unexported (golint)
    • Line 25: warning: exported method Hooks.OnErrorDrop should have comment or be unexported (golint)
    • Line 45: warning: exported function Global should have comment or be unexported (golint)
    • Line 49: warning: exported function OnNextDrop should have comment or be unexported (golint)
    • Line 53: warning: exported function OnErrorDrop should have comment or be unexported (golint)
    • reactor-go/scheduler/scheduler.go
    • Line 25: warning: exported function IsElastic should have comment or be unexported (golint)
    • Line 29: warning: exported function IsParallel should have comment or be unexported (golint)
    • Line 33: warning: exported function IsSingle should have comment or be unexported (golint)
    • reactor-go/internal/subscribers/block_subscriber.go
    • Line 15: warning: exported function BorrowBlockSubscriber should have comment or be unexported (golint)
    • Line 19: warning: exported function ReturnBlockSubscriber should have comment or be unexported (golint)
    • Line 45: warning: exported type BlockSubscriber should have comment or be unexported (golint)
    • Line 52: warning: exported method BlockSubscriber.Reset should have comment or be unexported (golint)
    • Line 59: warning: exported method BlockSubscriber.Done should have comment or be unexported (golint)
    • Line 63: warning: exported method BlockSubscriber.OnComplete should have comment or be unexported (golint)
    • Line 69: warning: exported method BlockSubscriber.OnError should have comment or be unexported (golint)
    • Line 85: warning: exported method BlockSubscriber.OnNext should have comment or be unexported (golint)
    • Line 93: warning: exported method BlockSubscriber.OnSubscribe should have comment or be unexported (golint)
    • reactor-go/internal/subscribers/do_finally.go
    • Line 22: warning: exported type DoFinallySubscriber should have comment or be unexported (golint)
    • Line 29: warning: exported method DoFinallySubscriber.Dispose should have comment or be unexported (golint)
    • Line 36: warning: exported function NewDoFinallySubscriber should have comment or be unexported (golint)
    • Line 44: warning: exported method DoFinallySubscriber.Request should have comment or be unexported (golint)
    • Line 50: warning: exported method DoFinallySubscriber.Cancel should have comment or be unexported (golint)
    • Line 58: warning: exported method DoFinallySubscriber.OnError should have comment or be unexported (golint)
    • Line 67: warning: exported method DoFinallySubscriber.OnNext should have comment or be unexported (golint)
    • Line 71: warning: exported method DoFinallySubscriber.OnSubscribe should have comment or be unexported (golint)
    • Line 81: warning: exported method DoFinallySubscriber.OnComplete should have comment or be unexported (golint)
    • reactor-go/flux/misc.go
    • Line 18: warning: exported function Error should have comment or be unexported (golint)
    • Line 22: warning: exported function Range should have comment or be unexported (golint)
    • Line 29: warning: exported function Empty should have comment or be unexported (golint)
    • Line 33: warning: exported function Just should have comment or be unexported (golint)
    • Line 40: warning: exported function Create should have comment or be unexported (golint)
    • Line 44: warning: exported function Interval should have comment or be unexported (golint)
    • Line 48: warning: exported function NewUnicastProcessor should have comment or be unexported (golint)
    • reactor-go/internal/context.go
    • Line 9: warning: exported type Key should have comment or be unexported (golint)
    • Line 12: warning: exported const KeyOnDiscard should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported function TryDiscard should have comment or be unexported (golint)
    • reactor-go/internal/misc.go
    • Line 7: warning: exported var ErrCallOnSubscribeDuplicated should have comment or be unexported (golint)
    • Line 8: warning: exported var EmptySubscription should have comment or be unexported (golint)
    • Line 19: warning: exported function SafeCloseDone should have comment or be unexported (golint)
    • reactor-go/flux/types.go
    • Line 11: warning: exported type OverflowStrategy should have comment or be unexported (golint)
    • Line 14: warning: exported const OverflowBuffer should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type Any should have comment or be unexported (golint)
    • Line 22: warning: exported type FnSwitchOnFirst should have comment or be unexported (golint)
    • Line 24: warning: exported type Flux should have comment or be unexported (golint)
    • Line 46: warning: exported type Sink should have comment or be unexported (golint)
    • Line 52: warning: exported type Processor should have comment or be unexported (golint)
    • reactor-go/error.go
    • Line 9: warning: exported var ErrNegativeRequest should have comment or be unexported (golint)
    • Line 28: warning: exported function NewContextError should have comment or be unexported (golint)
    • reactor-go/reactor.go
    • Line 30: warning: exported const SignalTypeDefault should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type Predicate should have comment or be unexported (golint)
    • Line 41: warning: exported type Transformer should have comment or be unexported (golint)
    • Line 44: warning: comment on exported type FnOnCancel should be of the form "FnOnCancel ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported type FnOnComplete should be of the form "FnOnComplete ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported type FnOnDiscard should be of the form "FnOnDiscard ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported type FnOnError should be of the form "FnOnError ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported type FnOnFinally should be of the form "FnOnFinally ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported type FnOnNext should be of the form "FnOnNext ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported type FnOnRequest should be of the form "FnOnRequest ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported type FnOnSubscribe should be of the form "FnOnSubscribe ..." (with optional leading article) (golint)
    • reactor-go/internal/subscribers/block_last_subscriber.go
    • Line 23: warning: exported type BlockLastSubscriber should have comment or be unexported (golint)
    • Line 29: warning: exported function BorrowBlockLastSubscriber should have comment or be unexported (golint)
    • Line 33: warning: exported function ReturnBlockLastSubscriber should have comment or be unexported (golint)
    • Line 40: warning: exported method BlockLastSubscriber.OnComplete should have comment or be unexported (golint)
    • Line 46: warning: exported method BlockLastSubscriber.OnError should have comment or be unexported (golint)
    • Line 59: warning: exported method BlockLastSubscriber.OnNext should have comment or be unexported (golint)
    • Line 70: warning: exported method BlockLastSubscriber.OnSubscribe should have comment or be unexported (golint)
    • Line 79: warning: exported method BlockLastSubscriber.Block should have comment or be unexported (golint)
    • reactor-go/internal/subscribers/switch_if_empty.go
    • Line 15: warning: exported type SwitchIfEmptySubscriber should have comment or be unexported (golint)
    • Line 25: warning: exported method SwitchIfEmptySubscriber.Request should have comment or be unexported (golint)
    • Line 35: warning: exported method SwitchIfEmptySubscriber.Cancel should have comment or be unexported (golint)
    • Line 39: warning: exported method SwitchIfEmptySubscriber.OnError should have comment or be unexported (golint)
    • Line 43: warning: exported method SwitchIfEmptySubscriber.OnNext should have comment or be unexported (golint)
    • Line 50: warning: exported method SwitchIfEmptySubscriber.OnSubscribe should have comment or be unexported (golint)
    • Line 62: warning: exported method SwitchIfEmptySubscriber.OnComplete should have comment or be unexported (golint)
    • Line 76: warning: exported function NewSwitchIfEmptySubscriber should have comment or be unexported (golint)
    • reactor-go/mono/initiate.go
    • Line 15: warning: exported function Error should have comment or be unexported (golint)
    • Line 19: warning: exported function ErrorOneshot should have comment or be unexported (golint)
    • Line 23: warning: exported function Empty should have comment or be unexported (golint)
    • Line 27: warning: exported function JustOrEmpty should have comment or be unexported (golint)
    • Line 34: warning: exported function Just should have comment or be unexported (golint)
    • Line 41: warning: exported function JustOneshot should have comment or be unexported (golint)
    • Line 48: warning: exported function Create should have comment or be unexported (golint)
    • Line 52: warning: exported function CreateOneshot should have comment or be unexported (golint)
    • Line 56: warning: exported function Delay should have comment or be unexported (golint)
    • Line 60: warning: exported function NewProcessor should have comment or be unexported (golint)
    • Line 69: warning: exported function Zip should have comment or be unexported (golint)
    • Line 73: warning: exported function ZipCombine should have comment or be unexported (golint)
    • Line 77: warning: exported function ZipOneshot should have comment or be unexported (golint)
    • Line 81: warning: exported function ZipCombineOneshot should have comment or be unexported (golint)
    • reactor-go/internal/subscribers/switch_if_error.go
    • Line 16: warning: exported type FnSwitchIfError should have comment or be unexported (golint)
    • Line 18: warning: exported type SwitchIfErrorSubscriber should have comment or be unexported (golint)
    • Line 29: warning: exported method SwitchIfErrorSubscriber.Request should have comment or be unexported (golint)
    • Line 43: warning: exported method SwitchIfErrorSubscriber.Cancel should have comment or be unexported (golint)
    • Line 48: warning: exported method SwitchIfErrorSubscriber.OnComplete should have comment or be unexported (golint)
    • Line 52: warning: exported method SwitchIfErrorSubscriber.OnError should have comment or be unexported (golint)
    • Line 61: warning: exported method SwitchIfErrorSubscriber.OnNext should have comment or be unexported (golint)
    • Line 65: warning: exported method SwitchIfErrorSubscriber.OnSubscribe should have comment or be unexported (golint)
    • Line 82: warning: exported function NewSwitchIfErrorSubscriber should have comment or be unexported (golint)
    • reactor-go/internal/subscribers/switch_value_if_error.go
    • Line 16: warning: exported type SwitchValueIfErrorSubscriber should have comment or be unexported (golint)
    • Line 24: warning: exported function NewSwitchValueIfErrorSubscriber should have comment or be unexported (golint)
    • Line 31: warning: exported method SwitchValueIfErrorSubscriber.Request should have comment or be unexported (golint)
    • Line 37: warning: exported method SwitchValueIfErrorSubscriber.Cancel should have comment or be unexported (golint)
    • Line 41: warning: exported method SwitchValueIfErrorSubscriber.OnError should have comment or be unexported (golint)
    • Line 53: warning: exported method SwitchValueIfErrorSubscriber.OnNext should have comment or be unexported (golint)
    • Line 57: warning: exported method SwitchValueIfErrorSubscriber.OnSubscribe should have comment or be unexported (golint)
    • Line 62: warning: exported method SwitchValueIfErrorSubscriber.OnComplete should have comment or be unexported (golint)
    • reactor-go/flux/flux_create.go
    • Line 11: warning: exported const BuffSizeXS should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type CreateOption should have comment or be unexported (golint)
    • Line 73: warning: exported function WithOverflowStrategy 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!