Showing 242 of 1,541 total issues
Class Array
has 105 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Array
include Enumerable
def self.allocate
Rubinius.primitive :array_allocate
File kernel.rb
has 836 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module Kernel
def equal?(other)
Rubinius.primitive :object_equal
raise PrimitiveFailure, "Kernel#equal? primitive failed"
end
File hash.rb
has 762 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class Hash
include Enumerable
Vector = Rubinius::Tuple
File file.rb
has 730 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class File < IO
include Enumerable
class FileError < Exception; end
class NoFileError < FileError; end
File enumerable.rb
has 709 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module Enumerable
def chunk
raise ArgumentError, "no block given" unless block_given?
::Enumerator.new do |yielder|
previous = nil
Class Configure
has 82 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Configure
# Default settings only. All code that may depend on user-selected options
# must run after options are processed.
def initialize(root)
File rubygems.rb
has 676 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'rbconfig'
require 'thread'
module Gem
VERSION = "2.7.5"
File loader.rb
has 660 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
TOPLEVEL_BINDING = binding()
module Rubinius
class Loader
def initialize
Class File
has 76 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class File < IO
include Enumerable
class FileError < Exception; end
class NoFileError < FileError; end
File server.rb
has 638 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'webrick'
require 'zlib'
require 'erb'
require 'uri'
Class TestCase
has 71 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Gem::TestCase < MiniTest::Unit::TestCase
attr_accessor :fetcher # :nodoc:
attr_accessor :gem_repo # :nodoc:
File type.rb
has 599 lines of code (exceeds 250 allowed). Consider refactoring. Open
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)
File process.rb
has 575 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module Process
def self.time
Rubinius.primitive :vm_time
raise PrimitiveFailure, "Process.time primitive failed"
end
File module.rb
has 571 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class Module
attr_reader :constant_table
attr_writer :method_table
File pointer_accessors.rb
has 558 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module Rubinius
module FFI
##
# This module provides accessors for various different types. It
# provides methods for:
Method options
has 222 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def options(argv=ARGV)
@stage = "processing command line arguments"
options = Options.new "Usage: rbx [subcommand] [options] [--] [script] [arguments]", 25
Class Module
has 61 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Module
attr_reader :constant_table
attr_writer :method_table
Class Hash
has 60 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Hash
include Enumerable
Vector = Rubinius::Tuple
Method write_configure_files
has 197 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def write_configure_files
@log.write "\nWriting configuration files..."
@bin_links.delete @program_name
Class Time
has 54 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Time
include Comparable
def self.now
Rubinius.primitive :time_s_now