AdityaSidharta/gombal

View on GitHub

Showing 3 of 3 total issues

Bot has 23 methods (exceeds 20 allowed). Consider refactoring.
Open

type Bot struct {
    ds          dataset
    strategy    string
    lastMessage map[string]string
}
Severity: Minor
Found in pkg/bot.go - About 2 hrs to fix

    Method Bot.HandleMessage has 52 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (bot *Bot) HandleMessage(inMessage Message, id string) {
        env, err := LoadEnv()
        if err != nil {
            logrus.Fatal(err)
        }
    Severity: Minor
    Found in pkg/handler.go - About 1 hr to fix

      Method Bot.Get has 5 return statements (exceeds 4 allowed).
      Open

      func (bot *Bot) Get(q string) (string, error) {
          if q == debugMessage {
              return bot.Debug(), nil
          }
          if q == fullDebugMessage {
      Severity: Major
      Found in pkg/bot.go - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language