Skip to content

Commit

Permalink
Ignore Style/WhileUntilDo RuboCop lint
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sds committed Oct 13, 2020
1 parent 96648e2 commit 9d4dbeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ linters:
- Style/IdenticalConditionalBranches
- Style/IfUnlessModifier
- Style/Next
- Style/WhileUntilDo
- Style/WhileUntilModifier

Tab:
Expand Down

0 comments on commit 9d4dbeb

Please sign in to comment.