henderea/everyday-menu

View on GitHub

Showing 4 of 4 total issues

Class MenuItem has 29 methods (exceeds 20 allowed). Consider refactoring.
Open

  class MenuItem
    include MyAccessors

    def self.create(label, title, options = {})
      new.tap { |item| setup_obj(item, label, title, options) }
Severity: Minor
Found in lib/everyday-menu/menu_item.rb - About 3 hrs to fix

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

      class Menu
        include MyAccessors
    
        def self.def_accessors
          my_attr_writer :label
    Severity: Minor
    Found in lib/everyday-menu/menu.rb - About 2 hrs to fix

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

        def self.def_menus
          mainMenu(:app, 'Blah') {
            hide_others
            show_all
            ___
      Severity: Minor
      Found in examples/basic_main_menu/main_menu.rb - About 1 hr to fix

        Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def initialize(parent, label, command_id = nil, canExecute = true, &block)
        Severity: Minor
        Found in lib/everyday-menu/utils.rb - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language