diff --git a/.rubocop.yml b/.rubocop.yml index 542e90b5e337c1..6e1d41173321ba 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -193,6 +193,11 @@ Style/HashSyntax: EnforcedStyle: ruby19_no_mixed_keys EnforcedShorthandSyntax: either +# Reason: Prevailing style choice +# https://docs.rubocop.org/rubocop/cops_style.html#stylehashtransformvalues +Style/HashTransformValues: + Enabled: false + # Reason: # https://docs.rubocop.org/rubocop/cops_style.html#stylenumericliterals Style/NumericLiterals: diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index c2826d718c7b19..dde8ab050bea8b 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -128,12 +128,6 @@ Style/GuardClause: - 'lib/mastodon/cli/media.rb' - 'lib/tasks/repo.rake' -# This cop supports unsafe autocorrection (--autocorrect-all). -Style/HashTransformValues: - Exclude: - - 'app/serializers/rest/web_push_subscription_serializer.rb' - - 'app/services/import_service.rb' - # This cop supports safe autocorrection (--autocorrect). Style/IfUnlessModifier: Exclude: