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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
17eaecd6
Commit
17eaecd6
authored
May 23, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Style/InfiniteLoop Rubocop cop
parent
bc806831
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
.rubocop.yml
.rubocop.yml
+1
-1
app/models/network/graph.rb
app/models/network/graph.rb
+1
-1
No files found.
.rubocop.yml
View file @
17eaecd6
...
@@ -299,7 +299,7 @@ Style/IndentHash:
...
@@ -299,7 +299,7 @@ Style/IndentHash:
# Use Kernel#loop for infinite loops.
# Use Kernel#loop for infinite loops.
Style/InfiniteLoop
:
Style/InfiniteLoop
:
Enabled
:
fals
e
Enabled
:
tru
e
# Use the new lambda literal syntax for single-line blocks.
# Use the new lambda literal syntax for single-line blocks.
Style/Lambda
:
Style/Lambda
:
...
...
app/models/network/graph.rb
View file @
17eaecd6
...
@@ -253,7 +253,7 @@ module Network
...
@@ -253,7 +253,7 @@ module Network
leaves
=
[]
leaves
=
[]
leaves
.
push
(
commit
)
if
commit
.
space
.
zero?
leaves
.
push
(
commit
)
if
commit
.
space
.
zero?
while
true
loop
do
return
leaves
if
commit
.
parents
(
@map
).
count
.
zero?
return
leaves
if
commit
.
parents
(
@map
).
count
.
zero?
commit
=
commit
.
parents
(
@map
).
first
commit
=
commit
.
parents
(
@map
).
first
...
...
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