synapsecns/sanguine

View on GitHub
contrib/opbot/config/config.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Config.Validate has 5 return statements (exceeds 4 allowed).
Open

func (c *Config) Validate() error {
    if c.SlackBotToken == "" {
        return errors.New("slack_bot_token is required")
    }
    if !strings.HasPrefix(c.SlackBotToken, "xoxb-") {
Severity: Major
Found in contrib/opbot/config/config.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status