mirror of https://github.com/rails/rails
Remove redundant requires
This commit is contained in:
parent
92e9b23472
commit
6b7b019e07
|
@ -255,6 +255,9 @@ Lint/RedundantCopDisableDirective:
|
|||
Lint/RedundantCopEnableDirective:
|
||||
Enabled: true
|
||||
|
||||
Lint/RedundantRequireStatement:
|
||||
Enabled: true
|
||||
|
||||
Lint/RedundantStringCoercion:
|
||||
Enabled: true
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "fiber"
|
||||
|
||||
module ActionView
|
||||
# == TODO
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "thread"
|
||||
require "delegate"
|
||||
|
||||
module ActionView
|
||||
|
|
|
@ -4,7 +4,6 @@ require "pathname"
|
|||
require "active_support/core_ext/class"
|
||||
require "active_support/core_ext/module/attribute_accessors"
|
||||
require "action_view/template"
|
||||
require "thread"
|
||||
require "concurrent/map"
|
||||
|
||||
module ActionView
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "thread"
|
||||
require "concurrent/map"
|
||||
|
||||
module ActiveRecord
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "thread"
|
||||
require "concurrent/map"
|
||||
require "monitor"
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "thread"
|
||||
require "monitor"
|
||||
|
||||
module ActiveRecord
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "thread"
|
||||
require "weakref"
|
||||
|
||||
module ActiveRecord
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "thread"
|
||||
require "cases/helper"
|
||||
require "models/person"
|
||||
require "models/job"
|
||||
|
|
|
@ -6,7 +6,6 @@ require "active_support/core_ext/array/extract_options"
|
|||
require "active_support/core_ext/class/attribute"
|
||||
require "active_support/core_ext/string/filters"
|
||||
require "active_support/core_ext/object/blank"
|
||||
require "thread"
|
||||
|
||||
module ActiveSupport
|
||||
# = Active Support \Callbacks
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "thread"
|
||||
require "monitor"
|
||||
|
||||
module ActiveSupport
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "fiber"
|
||||
|
||||
module ActiveSupport
|
||||
module IsolatedExecutionState # :nodoc:
|
||||
|
|
|
@ -5,8 +5,6 @@ require "active_support/testing/parallelize_executor"
|
|||
module ActiveSupport
|
||||
module Testing
|
||||
module Isolation
|
||||
require "thread"
|
||||
|
||||
SubprocessCrashed = Class.new(StandardError)
|
||||
|
||||
def self.included(klass) # :nodoc:
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require_relative "abstract_unit"
|
||||
require "pp"
|
||||
require "active_support/dependencies"
|
||||
|
||||
module ModuleWithMissing
|
||||
|
|
|
@ -348,7 +348,6 @@ module Rack
|
|||
|
||||
if options[:debug]
|
||||
$DEBUG = true
|
||||
require "pp"
|
||||
p options[:server]
|
||||
pp wrapped_app
|
||||
pp app
|
||||
|
|
|
@ -6,7 +6,6 @@ require "active_support/callbacks"
|
|||
require "active_support/core_ext/module/delegation"
|
||||
require "active_support/core_ext/object/try"
|
||||
require "pathname"
|
||||
require "thread"
|
||||
|
||||
module Rails
|
||||
# +Rails::Engine+ allows you to wrap a specific \Rails application or subset of
|
||||
|
|
Loading…
Reference in New Issue