Browse Source

Autofix Rubocop Style/EmptyMethod (#23732)

closed-social-glitch-2
Nick Schonning 1 year ago
committed by GitHub
parent
commit
8ef09813a2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 16 deletions
  1. +0
    -10
      .rubocop_todo.yml
  2. +1
    -2
      db/migrate/20181024224956_migrate_account_conversations.rb
  3. +1
    -2
      db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb
  4. +1
    -2
      db/migrate/20200510110808_reset_web_app_secret.rb

+ 0
- 10
.rubocop_todo.yml View File

@ -2695,16 +2695,6 @@ Style/ConcatArrayLiterals:
Style/Documentation:
Enabled: false
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
Exclude:
- 'db/migrate/20181024224956_migrate_account_conversations.rb'
- 'db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb'
- 'db/migrate/20200510110808_reset_web_app_secret.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/ExplicitBlockArgument:

+ 1
- 2
db/migrate/20181024224956_migrate_account_conversations.rb View File

@ -100,8 +100,7 @@ class MigrateAccountConversations < ActiveRecord::Migration[5.2]
end
end
def down
end
def down; end
private

+ 1
- 2
db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb View File

@ -12,6 +12,5 @@ class PreserveOldLayoutForExistingUsers < ActiveRecord::Migration[5.2]
end
end
def down
end
def down; end
end

+ 1
- 2
db/migrate/20200510110808_reset_web_app_secret.rb View File

@ -10,6 +10,5 @@ class ResetWebAppSecret < ActiveRecord::Migration[5.2]
web_app.save!
end
def down
end
def down; end
end

Loading…
Cancel
Save