diff --git a/.rubocop.yml b/.rubocop.yml index 1b5ce67ee7c480..da36442072d691 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -188,6 +188,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 3f2e9aee62e852..1e10e2832caa17 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -141,12 +141,6 @@ Style/HashAsLastArrayItem: - 'app/services/batched_remove_status_service.rb' - 'app/services/notify_service.rb' -# 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: