Style/HashSyntax: Use EnforcedShorthandSyntax: never for Ruby 3.1
What does this MR do and why?
Short-hand Hash syntax does not work prior 3.1.
Closes #396229 (closed).
How to set up and validate locally
- Switch to Ruby 3.1 via
asdf local ruby 3.1.3
- Checkout !114366 (closed) and
bundle
- Remove
Style/HashSyntax
from.rubocop.yml
- Cherry-pick f6220090 via
git cherry-pick f6220090cbc5c3aa96882051b2ad243c40097dc2
- Verify RuboCop configuration via
bundle exec rubocop --show-cops Style/HashSyntax
- Run RuboCop without offenses via
bundle exec rubocop ee/spec/requests/api/resource_weight_events_spec.rb
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Leitzen