oklahomer/go-sarah

View on GitHub
_examples/simple/plugins/guess/props.go

Summary

Maintainability
A
35 mins
Test Coverage

Function guessFunc has 5 return statements (exceeds 4 allowed).
Open

func guessFunc(_ context.Context, input sarah.Input, answer int) (*sarah.CommandResponse, error) {
    // For handiness, create a function that recursively calls guessFunc until the user inputs the right answer.
    retry := func(c context.Context, i sarah.Input) (*sarah.CommandResponse, error) {
        return guessFunc(c, i, answer)
    }
Severity: Major
Found in _examples/simple/plugins/guess/props.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status