From 9d4dbebda6aff052b3c33b3e8575fb6f80067af0 Mon Sep 17 00:00:00 2001 From: Shane da Silva Date: Mon, 12 Oct 2020 22:47:34 -0700 Subject: [PATCH] Ignore Style/WhileUntilDo RuboCop lint This is an issue because Slim inserts the `do` after `while` loops in control statements: https://github.com/slim-template/slim/blob/1f3bcf011877/lib/slim/do_inserter.rb#L10-L18 Rather than try and hack around this, simply ignore the lint. --- CHANGELOG.md | 4 ++++ config/default.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fdedab0..1c6bb93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Slim-Lint Changelog +## master (unreleased) + +* Ignore `Style/WhileUntilDo` RuboCop cop by default + ## 0.20.1 * Disable `Style/IdenticalConditionalBranches` cop by default diff --git a/config/default.yml b/config/default.yml index 255fb60..8560689 100644 --- a/config/default.yml +++ b/config/default.yml @@ -72,6 +72,7 @@ linters: - Style/IdenticalConditionalBranches - Style/IfUnlessModifier - Style/Next + - Style/WhileUntilDo - Style/WhileUntilModifier Tab: