rubinius/rubinius

View on GitHub

Showing 242 of 1,541 total issues

Class Array has 105 methods (exceeds 20 allowed). Consider refactoring.
Open

class Array
  include Enumerable

  def self.allocate
    Rubinius.primitive :array_allocate
Severity: Major
Found in core/array.rb - About 2 days to fix

    File kernel.rb has 836 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    module Kernel
      def equal?(other)
        Rubinius.primitive :object_equal
        raise PrimitiveFailure, "Kernel#equal? primitive failed"
      end
    Severity: Major
    Found in core/kernel.rb - About 2 days to fix

      File hash.rb has 762 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      class Hash
        include Enumerable
      
        Vector = Rubinius::Tuple
      
      
      Severity: Major
      Found in core/hash.rb - About 1 day to fix

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

        class File < IO
          include Enumerable
        
          class FileError < Exception; end
          class NoFileError < FileError; end
        Severity: Major
        Found in core/file.rb - About 1 day to fix

          File enumerable.rb has 709 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          module Enumerable
            def chunk
              raise ArgumentError, "no block given" unless block_given?
              ::Enumerator.new do |yielder|
                previous = nil
          Severity: Major
          Found in core/enumerable.rb - About 1 day to fix

            Class Configure has 82 methods (exceeds 20 allowed). Consider refactoring.
            Open

            class Configure
            
              # Default settings only. All code that may depend on user-selected options
              # must run after options are processed.
              def initialize(root)
            Severity: Major
            Found in configure.rb - About 1 day to fix

              File rubygems.rb has 676 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              require 'rbconfig'
              require 'thread'
              
              module Gem
                VERSION = "2.7.5"
              Severity: Major
              Found in library/rubygems.rb - About 1 day to fix

                File loader.rb has 660 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                TOPLEVEL_BINDING = binding()
                
                module Rubinius
                  class Loader
                    def initialize
                Severity: Major
                Found in core/loader.rb - About 1 day to fix

                  Class File has 76 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                  class File < IO
                    include Enumerable
                  
                    class FileError < Exception; end
                    class NoFileError < FileError; end
                  Severity: Major
                  Found in core/file.rb - About 1 day to fix

                    File server.rb has 638 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    require 'webrick'
                    require 'zlib'
                    require 'erb'
                    require 'uri'
                    
                    
                    Severity: Major
                    Found in library/rubygems/server.rb - About 1 day to fix

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

                      class Gem::TestCase < MiniTest::Unit::TestCase
                      
                        attr_accessor :fetcher # :nodoc:
                      
                        attr_accessor :gem_repo # :nodoc:
                      Severity: Major
                      Found in library/rubygems/test_case.rb - About 1 day to fix

                        File type.rb has 599 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        module Rubinius
                          module Type
                            # Performs a direct kind_of? check on the object bypassing any method
                            # overrides.
                            def self.object_kind_of?(obj, cls)
                        Severity: Major
                        Found in core/type.rb - About 1 day to fix

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

                          module Process
                            def self.time
                              Rubinius.primitive :vm_time
                              raise PrimitiveFailure, "Process.time primitive failed"
                            end
                          Severity: Major
                          Found in core/process.rb - About 1 day to fix

                            File module.rb has 571 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            class Module
                            
                              attr_reader :constant_table
                              attr_writer :method_table
                            
                            
                            Severity: Major
                            Found in core/module.rb - About 1 day to fix

                              File pointer_accessors.rb has 558 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              module Rubinius
                              module FFI
                                ##
                                # This module provides accessors for various different types. It
                                # provides methods for:
                              Severity: Major
                              Found in core/pointer_accessors.rb - About 1 day to fix

                                Method options has 222 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    def options(argv=ARGV)
                                      @stage = "processing command line arguments"
                                
                                      options = Options.new "Usage: rbx [subcommand] [options] [--] [script] [arguments]", 25
                                
                                
                                Severity: Major
                                Found in core/loader.rb - About 1 day to fix

                                  Class Module has 61 methods (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class Module
                                  
                                    attr_reader :constant_table
                                    attr_writer :method_table
                                  
                                  
                                  Severity: Major
                                  Found in core/module.rb - About 1 day to fix

                                    Class Hash has 60 methods (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class Hash
                                      include Enumerable
                                    
                                      Vector = Rubinius::Tuple
                                    
                                    
                                    Severity: Major
                                    Found in core/hash.rb - About 1 day to fix

                                      Method write_configure_files has 197 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        def write_configure_files
                                          @log.write "\nWriting configuration files..."
                                      
                                          @bin_links.delete @program_name
                                      
                                      
                                      Severity: Major
                                      Found in configure.rb - About 7 hrs to fix

                                        Class Time has 54 methods (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class Time
                                          include Comparable
                                        
                                          def self.now
                                            Rubinius.primitive :time_s_now
                                        Severity: Major
                                        Found in core/time.rb - About 7 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language