configs/rubocop/gds-ruby-styleguide.yml in govuk-lint-3.11.5 vs configs/rubocop/gds-ruby-styleguide.yml in govuk-lint-4.0.0
- old
+ new
@@ -302,19 +302,20 @@
SupportedStyles:
- ruby19
- hash_rockets
TrailingCommaInArrayLiteral:
- Enabled: false
+ Enabled: true
EnforcedStyleForMultiline: comma
TrailingCommaInHashLiteral:
- Enabled: false
+ Enabled: true
EnforcedStyleForMultiline: comma
TrailingCommaInArguments:
- Enabled: false
+ Enabled: true
+ EnforcedStyleForMultiline: comma
# Supports --auto-correct
WordArray:
Description: Use %w or %W for arrays of words.
Enabled: true
@@ -331,10 +332,10 @@
Enabled: true
# Supports --auto-correct
StringLiterals:
Description: Checks if uses of quotes match the configured preference.
- Enabled: false
+ Enabled: true
EnforcedStyle: double_quotes
SupportedStyles:
- single_quotes
- double_quotes