]> git.openstreetmap.org Git - chef.git/commitdiff
Avoid warning running cookstyle due to Layout/HeredocIndentation
authorTim Smith <tsmith84@gmail.com>
Thu, 16 Jul 2020 05:44:17 +0000 (22:44 -0700)
committerTim Smith <tsmith84@gmail.com>
Thu, 16 Jul 2020 05:44:17 +0000 (22:44 -0700)
When Ruby 2.3 support was dropped in RuboCop they changed the Layout/HeredocIndentation to only support squiggly so setting this just causes it to warn. Just enable it instead.

See https://github.com/rubocop-hq/rubocop/pull/8056

Signed-off-by: Tim Smith <tsmith@chef.io>
.rubocop.yml

index d7fa0e5f7d9ad3269480e21dc1423bb56e9a0740..649fc64dc4e1ab442d295463e9eae0b87bcff42b 100644 (file)
@@ -10,7 +10,7 @@ Layout/ExtraSpacing:
   AllowForAlignment: true
 
 Layout/HeredocIndentation:
-  EnforcedStyle: squiggly
+  Enabled: true
 
 Naming/MethodParameterName:
   Enabled: false