Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
0ea017d9
Commit
0ea017d9
authored
May 30, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Style/WhileUntilDo rubocop style cop
See #17478
parent
43c35b0f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
.rubocop.yml
.rubocop.yml
+1
-1
app/models/network/graph.rb
app/models/network/graph.rb
+1
-1
lib/gitlab/ci/build/artifacts/metadata.rb
lib/gitlab/ci/build/artifacts/metadata.rb
+1
-1
No files found.
.rubocop.yml
View file @
0ea017d9
...
@@ -705,7 +705,7 @@ Style/WhenThen:
...
@@ -705,7 +705,7 @@ Style/WhenThen:
# Checks for redundant do after while or until.
# Checks for redundant do after while or until.
Style/WhileUntilDo
:
Style/WhileUntilDo
:
Enabled
:
fals
e
Enabled
:
tru
e
# Favor modifier while/until usage when you have a single-line body.
# Favor modifier while/until usage when you have a single-line body.
Style/WhileUntilModifier
:
Style/WhileUntilModifier
:
...
...
app/models/network/graph.rb
View file @
0ea017d9
...
@@ -231,7 +231,7 @@ module Network
...
@@ -231,7 +231,7 @@ module Network
reserved
.
uniq!
reserved
.
uniq!
space
=
space_default
space
=
space_default
while
reserved
.
include?
(
space
)
do
while
reserved
.
include?
(
space
)
space
+=
space_step
space
+=
space_step
if
space
<
space_base
then
if
space
<
space_base
then
space_step
*=
-
1
space_step
*=
-
1
...
...
lib/gitlab/ci/build/artifacts/metadata.rb
View file @
0ea017d9
...
@@ -56,7 +56,7 @@ module Gitlab
...
@@ -56,7 +56,7 @@ module Gitlab
child_pattern
=
'[^/]*/?$'
unless
@opts
[
:recursive
]
child_pattern
=
'[^/]*/?$'
unless
@opts
[
:recursive
]
match_pattern
=
/^
#{
Regexp
.
escape
(
@path
)
}#{
child_pattern
}
/
match_pattern
=
/^
#{
Regexp
.
escape
(
@path
)
}#{
child_pattern
}
/
until
gz
.
eof?
do
until
gz
.
eof?
begin
begin
path
=
read_string
(
gz
).
force_encoding
(
'UTF-8'
)
path
=
read_string
(
gz
).
force_encoding
(
'UTF-8'
)
meta
=
read_string
(
gz
).
force_encoding
(
'UTF-8'
)
meta
=
read_string
(
gz
).
force_encoding
(
'UTF-8'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment