Remove redundant requires

This commit is contained in:
Étienne Barrié 2024-08-23 15:38:05 +02:00
parent 92e9b23472
commit 6b7b019e07
16 changed files with 3 additions and 16 deletions

View File

@ -255,6 +255,9 @@ Lint/RedundantCopDisableDirective:
Lint/RedundantCopEnableDirective:
Enabled: true
Lint/RedundantRequireStatement:
Enabled: true
Lint/RedundantStringCoercion:
Enabled: true

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "fiber"
module ActionView
# == TODO

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "thread"
require "delegate"
module ActionView

View File

@ -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

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "thread"
require "concurrent/map"
module ActiveRecord

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "thread"
require "concurrent/map"
require "monitor"

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "thread"
require "monitor"
module ActiveRecord

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "thread"
require "weakref"
module ActiveRecord

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "thread"
require "cases/helper"
require "models/person"
require "models/job"

View File

@ -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

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "thread"
require "monitor"
module ActiveSupport

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true
require "fiber"
module ActiveSupport
module IsolatedExecutionState # :nodoc:

View File

@ -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:

View File

@ -1,7 +1,6 @@
# frozen_string_literal: true
require_relative "abstract_unit"
require "pp"
require "active_support/dependencies"
module ModuleWithMissing

View File

@ -348,7 +348,6 @@ module Rack
if options[:debug]
$DEBUG = true
require "pp"
p options[:server]
pp wrapped_app
pp app

View File

@ -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