Showing 1,199 of 1,199 total issues

File mapper.rb has 1178 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require "active_support/core_ext/hash/slice"
require "active_support/core_ext/enumerable"
require "active_support/core_ext/array/extract_options"
require "active_support/core_ext/regexp"
require "active_support/core_ext/symbol/starts_ends_with"
Severity: Major
Found in actionpack/lib/action_dispatch/routing/mapper.rb - About 3 days to fix

    File activestorage.js has 942 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    (function(global, factory) {
      typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define([ "exports" ], factory) : factory(global.ActiveStorage = {});
    })(this, function(exports) {
      "use strict";
      function createCommonjsModule(fn, module) {
    Severity: Major
    Found in activestorage/app/assets/javascripts/activestorage.js - About 2 days to fix

      Class ToSql has 108 methods (exceeds 20 allowed). Consider refactoring.
      Open

          class ToSql < Arel::Visitors::Visitor
            def initialize(connection)
              super()
              @connection = connection
            end
      Severity: Major
      Found in activerecord/lib/arel/visitors/to_sql.rb - About 2 days to fix

        Function sparkMd5 has 405 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          var sparkMd5 = createCommonjsModule(function(module, exports) {
            (function(factory) {
              {
                module.exports = factory();
              }
        Severity: Major
        Found in activestorage/app/assets/javascripts/activestorage.js - About 2 days to fix

          Class AbstractAdapter has 102 methods (exceeds 20 allowed). Consider refactoring.
          Open

              class AbstractAdapter
                ADAPTER_NAME = "Abstract"
                include ActiveSupport::Callbacks
                define_callbacks :checkout, :checkin
          
          

            File query_methods.rb has 772 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            require "active_record/relation/from_clause"
            require "active_record/relation/query_attribute"
            require "active_record/relation/where_clause"
            require "active_model/forbidden_attributes_protection"
            require "active_support/core_ext/array/wrap"
            Severity: Major
            Found in activerecord/lib/active_record/relation/query_methods.rb - About 1 day to fix

              File migration.rb has 740 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              require "benchmark"
              require "set"
              require "zlib"
              require "active_support/core_ext/array/access"
              require "active_support/core_ext/enumerable"
              Severity: Major
              Found in activerecord/lib/active_record/migration.rb - About 1 day to fix

                File to_sql.rb has 740 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                module Arel # :nodoc: all
                  module Visitors
                    class UnsupportedVisitError < StandardError
                      def initialize(object)
                        super "Unsupported argument type: #{object.class.name}. Construct an Arel node instead."
                Severity: Major
                Found in activerecord/lib/arel/visitors/to_sql.rb - About 1 day to fix

                  File postgresql_adapter.rb has 720 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  gem "pg", "~> 1.1"
                  require "pg"
                  
                  require "active_support/core_ext/object/try"
                  require "active_record/connection_adapters/abstract_adapter"

                    Class Mapper has 85 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                        class Mapper
                          URL_OPTIONS = [:protocol, :subdomain, :domain, :host, :port]
                    
                          class Constraints < Routing::Endpoint #:nodoc:
                            attr_reader :app, :constraints
                    Severity: Major
                    Found in actionpack/lib/action_dispatch/routing/mapper.rb - About 1 day to fix

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

                          class AbstractMysqlAdapter < AbstractAdapter
                            include MySQL::Quoting
                            include MySQL::SchemaStatements
                      
                            ##

                        File reflection.rb has 675 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        require "active_support/core_ext/string/filters"
                        
                        module ActiveRecord
                          # = Active Record Reflection
                          module Reflection # :nodoc:
                        Severity: Major
                        Found in activerecord/lib/active_record/reflection.rb - About 1 day to fix

                          File route_set.rb has 662 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          require "action_dispatch/journey"
                          require "active_support/core_ext/object/to_query"
                          require "active_support/core_ext/module/redefine_method"
                          require "active_support/core_ext/module/remove_method"
                          require "active_support/core_ext/array/extract_options"
                          Severity: Major
                          Found in actionpack/lib/action_dispatch/routing/route_set.rb - About 1 day to fix

                            File connection_pool.rb has 655 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            require "thread"
                            require "concurrent/map"
                            require "monitor"
                            require "weakref"
                            
                            

                              Class PostgreSQLAdapter has 77 methods (exceeds 20 allowed). Consider refactoring.
                              Open

                                  class PostgreSQLAdapter < AbstractAdapter
                                    ADAPTER_NAME = "PostgreSQL"
                              
                                    class << self
                                      def new_client(conn_params)

                                File abstract_mysql_adapter.rb has 636 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                require "active_record/connection_adapters/abstract_adapter"
                                require "active_record/connection_adapters/statement_pool"
                                require "active_record/connection_adapters/mysql/column"
                                require "active_record/connection_adapters/mysql/explain_pretty_printer"
                                require "active_record/connection_adapters/mysql/quoting"

                                  File schema_statements.rb has 627 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  require "active_support/core_ext/string/access"
                                  require "digest/sha2"
                                  
                                  module ActiveRecord
                                    module ConnectionAdapters # :nodoc:

                                    Class Relation has 70 methods (exceeds 20 allowed). Consider refactoring.
                                    Open

                                      class Relation
                                        MULTI_VALUE_METHODS  = [:includes, :eager_load, :preload, :select, :group,
                                                                :order, :joins, :left_outer_joins, :references,
                                                                :extending, :unscope, :optimizer_hints, :annotate]
                                    
                                    
                                    Severity: Major
                                    Found in activerecord/lib/active_record/relation.rb - About 1 day to fix

                                      File schema_statements.rb has 590 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      module ActiveRecord
                                        module ConnectionAdapters
                                          module PostgreSQL
                                            module SchemaStatements
                                              # Drops the database specified on the +name+ attribute

                                        Class Parameters has 65 methods (exceeds 20 allowed). Consider refactoring.
                                        Open

                                          class Parameters
                                            cattr_accessor :permit_all_parameters, instance_accessor: false, default: false
                                        
                                            cattr_accessor :action_on_unpermitted_parameters, instance_accessor: false
                                        
                                        
                                        Severity: Major
                                        Found in actionpack/lib/action_controller/metal/strong_parameters.rb - About 1 day to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language