Add and apply Lint/DuplicateBranch rubocop rule
This rule was introduced in rubocop 1.3.0.
This commit is contained in:
@@ -160,6 +160,9 @@ Lint/BooleanSymbol:
|
|||||||
Lint/ConstantDefinitionInBlock:
|
Lint/ConstantDefinitionInBlock:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
Lint/DuplicateBranch:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
Lint/DuplicateMethods:
|
Lint/DuplicateMethods:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
|||||||
@@ -187,12 +187,10 @@ class Budget < ApplicationRecord
|
|||||||
|
|
||||||
def investments_orders
|
def investments_orders
|
||||||
case phase
|
case phase
|
||||||
when "accepting", "reviewing"
|
when "accepting", "reviewing", "finished"
|
||||||
%w[random]
|
%w[random]
|
||||||
when "publishing_prices", "balloting", "reviewing_ballots"
|
when "publishing_prices", "balloting", "reviewing_ballots"
|
||||||
%w[random price]
|
%w[random price]
|
||||||
when "finished"
|
|
||||||
%w[random]
|
|
||||||
else
|
else
|
||||||
%w[random confidence_score]
|
%w[random confidence_score]
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user