YorickPeterse/ruby-lint

View on GitHub

Showing 2,162 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

          Similar blocks of code found in 3 locations. Consider refactoring.
          Open

            defs.define_constant('ActionView::Base::FormBuilder') do |klass|
              klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
              klass.inherits(defs.constant_proxy('ActionView::ModelNaming', RubyLint.registry))
          
              klass.define_method('_to_partial_path')
          Severity: Major
          Found in lib/ruby-lint/definitions/rails/action_view.rb and 2 other locations - About 2 days to fix
          lib/ruby-lint/definitions/rails/action_view.rb on lines 2664..2924
          lib/ruby-lint/definitions/rails/action_view.rb on lines 5851..6111

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 630.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 3 locations. Consider refactoring.
          Open

            defs.define_constant('ActionView::Helpers::FormBuilder') do |klass|
              klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
              klass.inherits(defs.constant_proxy('ActionView::ModelNaming', RubyLint.registry))
          
              klass.define_method('_to_partial_path')
          Severity: Major
          Found in lib/ruby-lint/definitions/rails/action_view.rb and 2 other locations - About 2 days to fix
          lib/ruby-lint/definitions/rails/action_view.rb on lines 919..1179
          lib/ruby-lint/definitions/rails/action_view.rb on lines 5851..6111

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 630.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 3 locations. Consider refactoring.
          Open

            defs.define_constant('ActionView::TestCase::FormBuilder') do |klass|
              klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
              klass.inherits(defs.constant_proxy('ActionView::ModelNaming', RubyLint.registry))
          
              klass.define_method('_to_partial_path')
          Severity: Major
          Found in lib/ruby-lint/definitions/rails/action_view.rb and 2 other locations - About 2 days to fix
          lib/ruby-lint/definitions/rails/action_view.rb on lines 919..1179
          lib/ruby-lint/definitions/rails/action_view.rb on lines 2664..2924

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 630.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          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

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                        defs.define_constant('RSpec::Core::Example::Procsy') do |klass|
                          klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                      
                          klass.define_instance_method('===') do |method|
                            method.define_rest_argument('a')
                      Severity: Major
                      Found in lib/ruby-lint/definitions/gems/rspec.rb and 1 other location - About 1 day to fix
                      lib/ruby-lint/definitions/gems/rspec.rb on lines 8970..9169

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 483.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                        defs.define_constant('RSpec::Core::SuiteHookContext::Procsy') do |klass|
                          klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                      
                          klass.define_instance_method('===') do |method|
                            method.define_rest_argument('a')
                      Severity: Major
                      Found in lib/ruby-lint/definitions/gems/rspec.rb and 1 other location - About 1 day to fix
                      lib/ruby-lint/definitions/gems/rspec.rb on lines 1381..1580

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 483.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      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

                          Similar blocks of code found in 3 locations. Consider refactoring.
                          Open

                            defs.define_constant('ActionView::TestCase::FormTagHelper') do |klass|
                              klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                          
                              klass.define_method('embed_authenticity_token_in_remote_forms')
                          
                          
                          Severity: Major
                          Found in lib/ruby-lint/definitions/rails/action_view.rb and 2 other locations - About 1 day to fix
                          lib/ruby-lint/definitions/rails/action_view.rb on lines 1434..1616
                          lib/ruby-lint/definitions/rails/action_view.rb on lines 3082..3264

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 458.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 3 locations. Consider refactoring.
                          Open

                            defs.define_constant('ActionView::Helpers::FormTagHelper') do |klass|
                              klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                          
                              klass.define_method('embed_authenticity_token_in_remote_forms')
                          
                          
                          Severity: Major
                          Found in lib/ruby-lint/definitions/rails/action_view.rb and 2 other locations - About 1 day to fix
                          lib/ruby-lint/definitions/rails/action_view.rb on lines 1434..1616
                          lib/ruby-lint/definitions/rails/action_view.rb on lines 6366..6548

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 458.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 3 locations. Consider refactoring.
                          Open

                            defs.define_constant('ActionView::Base::FormTagHelper') do |klass|
                              klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
                          
                              klass.define_method('embed_authenticity_token_in_remote_forms')
                          
                          
                          Severity: Major
                          Found in lib/ruby-lint/definitions/rails/action_view.rb and 2 other locations - About 1 day to fix
                          lib/ruby-lint/definitions/rails/action_view.rb on lines 3082..3264
                          lib/ruby-lint/definitions/rails/action_view.rb on lines 6366..6548

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 458.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Severity
                          Category
                          Status
                          Source
                          Language