jimmycuadra/lita-karma

View on GitHub
lib/lita/handlers/karma/chat.rb

Summary

Maintainability
A
2 hrs
Test Coverage

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

      There are no issues that match your filters.

      Category
      Status