configs/rubocop/gds-ruby-styleguide.yml in govuk-lint-3.7.0 vs configs/rubocop/gds-ruby-styleguide.yml in govuk-lint-3.8.0
- old
+ new
@@ -88,15 +88,20 @@
SpaceAfterComma:
Description: Use spaces after commas.
Enabled: true
# Supports --auto-correct
-SpaceInsideBrackets:
- Description: No spaces after [ or before ].
+SpaceInsideReferenceBrackets:
+ Description: No spaces after array[ or before ].
Enabled: true
# Supports --auto-correct
+SpaceInsideArrayLiteralBrackets:
+ Description: No spaces after array = [ or before ].
+ Enabled: true
+
+# Supports --auto-correct
SpaceInsideParens:
Description: No spaces after ( or before ).
Enabled: true
Tab:
@@ -138,10 +143,13 @@
- each
IfUnlessModifier:
Description: Favor modifier if/unless usage when you have a single-line body.
Enabled: false
- MaxLineLength: 80
+
+Metrics:
+ LineLength:
+ Max: 80
MethodCalledOnDoEndBlock:
Description: Avoid chaining a method call on a do...end block.
Enabled: true