Apply Rubocop Style/RedundantConstantBase (#23463)

This commit is contained in:
Nick Schonning 2023-02-17 22:30:03 -05:00 committed by GitHub
parent e4f37fad98
commit d65b2c1924
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 11 deletions

View file

@ -3194,14 +3194,6 @@ Style/RedundantBegin:
- 'lib/sanitize_ext/sanitize_config.rb' - 'lib/sanitize_ext/sanitize_config.rb'
- 'lib/tasks/db.rake' - 'lib/tasks/db.rake'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantConstantBase:
Exclude:
- 'config.ru'
- 'lib/tasks/statistics.rake'
- 'spec/rails_helper.rb'
# Offense count: 16 # Offense count: 16
# This cop supports safe autocorrection (--autocorrect). # This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpCharacterClass: Style/RedundantRegexpCharacterClass:

View file

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# This file is used by Rack-based servers to start the application. # This file is used by Rack-based servers to start the application.
require ::File.expand_path('config/environment', __dir__) require File.expand_path('config/environment', __dir__)
run Rails.application run Rails.application

View file

@ -13,7 +13,7 @@ namespace :mastodon do
%w(Validators app/validators), %w(Validators app/validators),
%w(Workers app/workers), %w(Workers app/workers),
].each do |name, dir| ].each do |name, dir|
::STATS_DIRECTORIES << [name, Rails.root.join(dir)] STATS_DIRECTORIES << [name, Rails.root.join(dir)]
end end
end end
end end

View file

@ -33,7 +33,7 @@ Devise::Test::ControllerHelpers.module_eval do
end end
RSpec.configure do |config| RSpec.configure do |config|
config.fixture_path = "#{::Rails.root}/spec/fixtures" config.fixture_path = "#{Rails.root}/spec/fixtures"
config.use_transactional_fixtures = true config.use_transactional_fixtures = true
config.order = 'random' config.order = 'random'
config.infer_spec_type_from_file_location! config.infer_spec_type_from_file_location!