Showing 78 of 2,162 total issues
File errno.rb
has 1213 lines of code (exceeds 250 allowed). Consider refactoring. Open
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|
File sprockets.rb
has 1190 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
RubyLint.registry.register('Sprockets') do |defs|
defs.define_constant('Sprockets') do |klass|
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
end
File file_utils.rb
has 1079 lines of code (exceeds 250 allowed). Consider refactoring. Open
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|
File active_model.rb
has 1060 lines of code (exceeds 250 allowed). Consider refactoring. Open
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')
File file.rb
has 999 lines of code (exceeds 250 allowed). Consider refactoring. Open
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))
File resolv.rb
has 945 lines of code (exceeds 250 allowed). Consider refactoring. Open
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|
File uri.rb
has 917 lines of code (exceeds 250 allowed). Consider refactoring. Open
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|
File option_parser.rb
has 892 lines of code (exceeds 250 allowed). Consider refactoring. Open
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|
File syck.rb
has 844 lines of code (exceeds 250 allowed). Consider refactoring. Open
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))
File irb.rb
has 833 lines of code (exceeds 250 allowed). Consider refactoring. Open
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')
File encoding.rb
has 811 lines of code (exceeds 250 allowed). Consider refactoring. Open
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|
File action_mailer.rb
has 787 lines of code (exceeds 250 allowed). Consider refactoring. Open
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')
File csv.rb
has 617 lines of code (exceeds 250 allowed). Consider refactoring. Open
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))
Class VirtualMachine
has 71 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class VirtualMachine < Iterator
include MethodEvaluation
attr_reader :associations,
:comments,
File virtual_machine.rb
has 587 lines of code (exceeds 250 allowed). Consider refactoring. Open
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.
File io.rb
has 572 lines of code (exceeds 250 allowed). Consider refactoring. Open
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))
File minitest.rb
has 542 lines of code (exceeds 250 allowed). Consider refactoring. Open
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|
File make_makefile.rb
has 500 lines of code (exceeds 250 allowed). Consider refactoring. Open
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|
File abstract_controller.rb
has 481 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
RubyLint.registry.register('AbstractController') do |defs|
defs.define_constant('AbstractController') do |klass|
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
end
File process.rb
has 460 lines of code (exceeds 250 allowed). Consider refactoring. Open
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|