diff options
author | Matt Jankowski <matt@jankowski.online> | 2024-04-24 04:32:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 08:32:18 +0000 |
commit | b903e6909e8d534330d19d5ecefcc1296a92ec36 (patch) | |
tree | 50dd13c41ad07f9c4ac3c406b1139d1e8a83c7f7 | |
parent | 0e585b9a52c499f76068cfd1cd85b1a6eedcc02e (diff) |
Disable `Style/HashAsLastArrayItem` cop (#30041)
-rw-r--r-- | .rubocop.yml | 5 | ||||
-rw-r--r-- | .rubocop_todo.yml | 13 |
2 files changed, 5 insertions, 13 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 1b5ce67ee7c..542e90b5e33 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -182,6 +182,11 @@ Style/FormatStringToken: AllowedMethods: - redirect_with_vary +# Reason: Prevailing style choice +# https://docs.rubocop.org/rubocop/cops_style.html#stylehashaslastarrayitem +Style/HashAsLastArrayItem: + Enabled: false + # Reason: Enforce modern Ruby style # https://docs.rubocop.org/rubocop/cops_style.html#stylehashsyntax Style/HashSyntax: diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 3f2e9aee62e..c2826d718c7 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -128,19 +128,6 @@ Style/GuardClause: - 'lib/mastodon/cli/media.rb' - 'lib/tasks/repo.rake' -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: braces, no_braces -Style/HashAsLastArrayItem: - Exclude: - - 'app/controllers/admin/statuses_controller.rb' - - 'app/controllers/api/v1/statuses_controller.rb' - - 'app/models/concerns/account/counters.rb' - - 'app/models/concerns/status/threading_concern.rb' - - 'app/models/status.rb' - - 'app/services/batched_remove_status_service.rb' - - 'app/services/notify_service.rb' - # This cop supports unsafe autocorrection (--autocorrect-all). Style/HashTransformValues: Exclude: |