Browse Source

Apply Rubocop Style/RedundantConstantBase (#23463)

closed-social-glitch-2
Nick Schonning 1 year ago
committed by GitHub
parent
commit
d65b2c1924
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 11 deletions
  1. +0
    -8
      .rubocop_todo.yml
  2. +1
    -1
      config.ru
  3. +1
    -1
      lib/tasks/statistics.rake
  4. +1
    -1
      spec/rails_helper.rb

+ 0
- 8
.rubocop_todo.yml View File

@ -3194,14 +3194,6 @@ Style/RedundantBegin:
- 'lib/sanitize_ext/sanitize_config.rb'
- '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
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpCharacterClass:

+ 1
- 1
config.ru View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
# 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

+ 1
- 1
lib/tasks/statistics.rake View File

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

+ 1
- 1
spec/rails_helper.rb View File

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

Loading…
Cancel
Save