YorickPeterse/ruby-lint

View on GitHub

Showing 78 of 2,162 total issues

File errno.rb has 1213 lines of code (exceeds 250 allowed). Consider refactoring.
Open

RubyLint.registry.register('Errno') do |defs|
  defs.define_constant('Errno') do |klass|
    klass.inherits(defs.constant_proxy('Object', RubyLint.registry))

    klass.define_method('handle') do |method|
Severity: Major
Found in lib/ruby-lint/definitions/core/errno.rb - About 3 days to fix

    File sprockets.rb has 1190 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    RubyLint.registry.register('Sprockets') do |defs|
      defs.define_constant('Sprockets') do |klass|
        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
    
      end
    Severity: Major
    Found in lib/ruby-lint/definitions/rails/sprockets.rb - About 3 days to fix

      File file_utils.rb has 1079 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      RubyLint.registry.register('FileUtils') do |defs|
        defs.define_constant('FileUtils') do |klass|
          klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
      
          klass.define_method('cd') do |method|
      Severity: Major
      Found in lib/ruby-lint/definitions/core/file_utils.rb - About 2 days to fix

        File active_model.rb has 1060 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        RubyLint.registry.register('ActiveModel') do |defs|
          defs.define_constant('ActiveModel') do |klass|
            klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
        
            klass.define_method('version')
        Severity: Major
        Found in lib/ruby-lint/definitions/rails/active_model.rb - About 2 days to fix

          File file.rb has 999 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          RubyLint.registry.register('File') do |defs|
            defs.define_constant('File') do |klass|
              klass.inherits(defs.constant_proxy('IO', RubyLint.registry))
              klass.inherits(defs.constant_proxy('Enumerable', RubyLint.registry))
          
          
          Severity: Major
          Found in lib/ruby-lint/definitions/core/file.rb - About 2 days to fix

            File resolv.rb has 945 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            RubyLint.registry.register('Resolv') do |defs|
              defs.define_constant('Resolv') do |klass|
                klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
            
                klass.define_method('each_address') do |method|
            Severity: Major
            Found in lib/ruby-lint/definitions/core/resolv.rb - About 2 days to fix

              File uri.rb has 917 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              RubyLint.registry.register('URI') do |defs|
                defs.define_constant('URI') do |klass|
                  klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
              
                  klass.define_method('decode_www_form') do |method|
              Severity: Major
              Found in lib/ruby-lint/definitions/core/uri.rb - About 2 days to fix

                File option_parser.rb has 892 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                RubyLint.registry.register('OptionParser') do |defs|
                  defs.define_constant('OptionParser') do |klass|
                    klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                
                    klass.define_method('accept') do |method|
                Severity: Major
                Found in lib/ruby-lint/definitions/core/option_parser.rb - About 2 days to fix

                  File syck.rb has 844 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  RubyLint.registry.register('Syck::BadAlias') do |defs|
                    defs.define_constant('Syck::BadAlias') do |klass|
                      klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                      klass.inherits(defs.constant_proxy('Comparable', RubyLint.registry))
                  
                  
                  Severity: Major
                  Found in lib/ruby-lint/definitions/core/syck.rb - About 2 days to fix

                    File irb.rb has 833 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    RubyLint.registry.register('IRB') do |defs|
                      defs.define_constant('IRB') do |klass|
                        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                    
                        klass.define_method('CurrentContext')
                    Severity: Major
                    Found in lib/ruby-lint/definitions/core/irb.rb - About 2 days to fix

                      File encoding.rb has 811 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      RubyLint.registry.register('Encoding') do |defs|
                        defs.define_constant('Encoding') do |klass|
                          klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                      
                          klass.define_method('_load') do |method|
                      Severity: Major
                      Found in lib/ruby-lint/definitions/core/encoding.rb - About 1 day to fix

                        File action_mailer.rb has 787 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        RubyLint.registry.register('ActionMailer') do |defs|
                          defs.define_constant('ActionMailer') do |klass|
                            klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                        
                            klass.define_method('version')
                        Severity: Major
                        Found in lib/ruby-lint/definitions/rails/action_mailer.rb - About 1 day to fix

                          File csv.rb has 617 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          RubyLint.registry.register('CSV') do |defs|
                            defs.define_constant('CSV') do |klass|
                              klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                              klass.inherits(defs.constant_proxy('Enumerable', RubyLint.registry))
                          
                          
                          Severity: Major
                          Found in lib/ruby-lint/definitions/core/csv.rb - About 1 day to fix

                            Class VirtualMachine has 71 methods (exceeds 20 allowed). Consider refactoring.
                            Open

                              class VirtualMachine < Iterator
                                include MethodEvaluation
                            
                                attr_reader :associations,
                                  :comments,
                            Severity: Major
                            Found in lib/ruby-lint/virtual_machine.rb - About 1 day to fix

                              File virtual_machine.rb has 587 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              module RubyLint
                                ##
                                # {RubyLint::VirtualMachine} is the heart of ruby-lint. It takes a AST
                                # generated by {RubyLint::Parser}, iterates it and builds various definitions
                                # of methods, variables, etc.
                              Severity: Major
                              Found in lib/ruby-lint/virtual_machine.rb - About 1 day to fix

                                File io.rb has 572 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                RubyLint.registry.register('IO') do |defs|
                                  defs.define_constant('IO') do |klass|
                                    klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                                    klass.inherits(defs.constant_proxy('Unmarshalable', RubyLint.registry))
                                    klass.inherits(defs.constant_proxy('File::Constants', RubyLint.registry))
                                Severity: Major
                                Found in lib/ruby-lint/definitions/core/io.rb - About 1 day to fix

                                  File minitest.rb has 542 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  RubyLint.registry.register('Minitest') do |defs|
                                    defs.define_constant('Minitest') do |klass|
                                      klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                                  
                                      klass.define_method('__run') do |method|
                                  Severity: Major
                                  Found in lib/ruby-lint/definitions/gems/minitest.rb - About 1 day to fix

                                    File make_makefile.rb has 500 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    RubyLint.registry.register('MakeMakefile') do |defs|
                                      defs.define_constant('MakeMakefile') do |klass|
                                        klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                                    
                                        klass.define_method('config_string') do |method|
                                    Severity: Minor
                                    Found in lib/ruby-lint/definitions/core/make_makefile.rb - About 1 day to fix

                                      File abstract_controller.rb has 481 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      RubyLint.registry.register('AbstractController') do |defs|
                                        defs.define_constant('AbstractController') do |klass|
                                          klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                                      
                                        end
                                      Severity: Minor
                                      Found in lib/ruby-lint/definitions/rails/abstract_controller.rb - About 7 hrs to fix

                                        File process.rb has 460 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        RubyLint.registry.register('Process') do |defs|
                                          defs.define_constant('Process') do |klass|
                                            klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                                        
                                            klass.define_method('abort') do |method|
                                        Severity: Minor
                                        Found in lib/ruby-lint/definitions/core/process.rb - About 7 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language