jimmycuadra/lita-karma

View on GitHub

Showing 3 of 3 total issues

Class Term has 21 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Term
    include Lita::Handler::Common

    namespace "karma"

Severity: Minor
Found in lib/lita/handlers/karma/term.rb - About 2 hrs to fix

    Method define_dynamic_routes has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def define_dynamic_routes(pattern)
          self.class.route(
            %r{(#{pattern})\+\+#{token_terminator.source}},
            :increment,
            help: { t("help.increment_key") => t("help.increment_value") }
    Severity: Minor
    Found in lib/lita/handlers/karma/chat.rb - About 1 hr to fix

      Method define_static_routes has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def define_static_routes
            self.class.route(
              %r{^karma\s+worst},
              :list_worst,
              command: true,
      Severity: Minor
      Found in lib/lita/handlers/karma/chat.rb - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language