rubinius/rubinius

View on GitHub

Showing 1,541 of 1,541 total issues

File gbk-tbl.rb has 21794 lines of code (exceeds 250 allowed). Consider refactoring.
Open

GBK_TO_UCS_TBL= [
  ["A1E8",0xA4],
  ["A1EC",0xA7],
  ["A1A7",0xA8],
  ["A1E3",0xB0],
Severity: Major
Found in build/libraries/oniguruma/enc/trans/gbk-tbl.rb - About 2 mos to fix

    File big5-uao-tbl.rb has 19784 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    BIG5_UAO_TO_UCS_TBL = [
      ["8140",0x4E17],
      ["8141",0x4E22],
      ["8142",0x4E2C],
      ["8143",0x4E55],
    Severity: Major
    Found in build/libraries/oniguruma/enc/trans/big5-uao-tbl.rb - About 2 mos to fix

      File cp949-tbl.rb has 8829 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      require 'euckr-tbl'
      
      CP949_TO_UCS_ADDITIONAL_TBL = [
        ["8141",0xAC02],
        ["8142",0xAC03],
      Severity: Major
      Found in build/libraries/oniguruma/enc/trans/cp949-tbl.rb - About 3 wks to fix

        File euckr-tbl.rb has 8227 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        EUCKR_TO_UCS_TBL = [
          ["A1A1",0x3000],
          ["A1A2",0x3001],
          ["A1A3",0x3002],
          ["A1A4",0xB7],
        Severity: Major
        Found in build/libraries/oniguruma/enc/trans/euckr-tbl.rb - About 3 wks to fix

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

          class IO
            include Enumerable
          
            def self.fnmatch(pattern, path, flags)
              Rubinius.primitive :io_fnmatch
          Severity: Major
          Found in core/io.rb - About 6 days to fix

            File string.rb has 2061 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            class String
              include Comparable
            
              attr_reader :num_bytes
              attr_reader_specific :num_bytes, :bytesize
            Severity: Major
            Found in core/string.rb - About 5 days to fix

              File configure.rb has 1749 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              require './rakelib/configure'
              require './rakelib/release'
              require './rakelib/build_signature'
              require 'rbconfig'
              require 'tempfile'
              Severity: Major
              Found in configure.rb - About 4 days to fix

                File array.rb has 1666 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                class Array
                  include Enumerable
                
                  def self.allocate
                    Rubinius.primitive :array_allocate
                Severity: Major
                Found in core/array.rb - About 4 days to fix

                  File specification.rb has 1649 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  require 'rubygems/version'
                  require 'rubygems/requirement'
                  require 'rubygems/platform'
                  require 'rubygems/deprecate'
                  require 'rubygems/basic_specification'
                  Severity: Major
                  Found in library/rubygems/specification.rb - About 4 days to fix

                    File zed.rb has 1402 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    ARGF = Rubinius::ARGFClass.new
                    
                    class Module
                      def alias_method(new_name, current_name)
                        new_name = Rubinius::Type.coerce_to_symbol(new_name)
                    Severity: Major
                    Found in core/zed.rb - About 3 days to fix

                      Class Specification has 178 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      class Gem::Specification < Gem::BasicSpecification
                      
                        # REFACTOR: Consider breaking out this version stuff into a separate
                        # module. There's enough special stuff around it that it may justify
                        # a separate class.
                      Severity: Major
                      Found in library/rubygems/specification.rb - About 3 days to fix

                        File integer.rb has 1109 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        class Integer < Numeric
                          def self.===(obj)
                            Rubinius.asm do
                              int = new_label
                              done = new_label
                        Severity: Major
                        Found in core/integer.rb - About 2 days to fix

                          Class String has 141 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                          class String
                            include Comparable
                          
                            attr_reader :num_bytes
                            attr_reader_specific :num_bytes, :bytesize
                          Severity: Major
                          Found in core/string.rb - About 2 days to fix

                            File marshal.rb has 970 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            class BasicObject
                              def __marshal__(ms, strip_ivars = false)
                                out = ms.serialize_extended_object self
                                out << "o"
                                cls = Rubinius::Type.object_class self
                            Severity: Major
                            Found in core/marshal.rb - About 2 days to fix

                              Class IO has 122 methods (exceeds 20 allowed). Consider refactoring.
                              Open

                              class IO
                                include Enumerable
                              
                                def self.fnmatch(pattern, path, flags)
                                  Rubinius.primitive :io_fnmatch
                              Severity: Major
                              Found in core/io.rb - About 2 days to fix

                                File utf8_mac-tbl.rb has 944 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                MAC_DECOMPOSE_TBL = [
                                  ["c380", "41cc80"],
                                  ["c381", "41cc81"],
                                  ["c382", "41cc82"],
                                  ["c383", "41cc83"],
                                Severity: Major
                                Found in build/libraries/oniguruma/enc/trans/utf8_mac-tbl.rb - About 2 days to fix

                                  File test_case.rb has 939 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  begin
                                    gem 'minitest', '~> 4.0'
                                  rescue NoMethodError, Gem::LoadError
                                    # for ruby tests
                                  end
                                  Severity: Major
                                  Found in library/rubygems/test_case.rb - About 2 days to fix

                                    File field_extract.rb has 890 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    class BasicPrimitive
                                      attr_accessor :pass_state
                                      attr_accessor :pass_self
                                      attr_accessor :pass_call_frame
                                      attr_accessor :pass_message
                                    Severity: Major
                                    Found in build/scripts/field_extract.rb - About 2 days to fix

                                      File sprinter.rb has 877 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      module Rubinius
                                        class Sprinter
                                          def self.cache
                                            @cache
                                          end
                                      Severity: Major
                                      Found in core/sprinter.rb - About 2 days to fix

                                        File daedalus.rb has 853 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        require 'fileutils'
                                        require 'digest/sha1'
                                        require 'thread'
                                        require 'dependency_grapher'
                                        
                                        
                                        Severity: Major
                                        Found in build/scripts/daedalus.rb - About 2 days to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language