GitLab wurde erfolgreich aktualisiert. Durch regelmäßige Updates bleibt das THM GitLab sicher. Danke für Ihre Geduld.

Commit 165834b3 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'complexity/rubocop-style-loop' into 'master'

Enable Style/InfiniteLoop Rubocop cop

This MR enabled Style/InfiniteLoop Rubocop cop, and fixes offenses.


See merge request !4257
parents 42aca7df 17eaecd6
......@@ -299,7 +299,7 @@ Style/IndentHash:
# Use Kernel#loop for infinite loops.
Enabled: false
Enabled: true
# Use the new lambda literal syntax for single-line blocks.
......@@ -253,7 +253,7 @@ def take_left_leaves(raw_commit)
leaves = []
leaves.push(commit) if
while true
loop do
return leaves if commit.parents(@map)
commit = commit.parents(@map).first
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment