Enable Style/WhileUntilDo rubocop style cop

See #17478
This commit is contained in:
Grzegorz Bizon 2016-05-30 11:37:14 +02:00
parent 43c35b0f20
commit 0ea017d997
3 changed files with 3 additions and 3 deletions

View File

@ -705,7 +705,7 @@ Style/WhenThen:
# Checks for redundant do after while or until.
Style/WhileUntilDo:
Enabled: false
Enabled: true
# Favor modifier while/until usage when you have a single-line body.
Style/WhileUntilModifier:

View File

@ -231,7 +231,7 @@ module Network
reserved.uniq!
space = space_default
while reserved.include?(space) do
while reserved.include?(space)
space += space_step
if space < space_base then
space_step *= -1

View File

@ -56,7 +56,7 @@ module Gitlab
child_pattern = '[^/]*/?$' unless @opts[:recursive]
match_pattern = /^#{Regexp.escape(@path)}#{child_pattern}/
until gz.eof? do
until gz.eof?
begin
path = read_string(gz).force_encoding('UTF-8')
meta = read_string(gz).force_encoding('UTF-8')