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:
|
||||
Enabled: true
|
||||
|
||||
Lint/DuplicateBranch:
|
||||
Enabled: true
|
||||
|
||||
Lint/DuplicateMethods:
|
||||
Enabled: true
|
||||
|
||||
|
||||
@@ -187,12 +187,10 @@ class Budget < ApplicationRecord
|
||||
|
||||
def investments_orders
|
||||
case phase
|
||||
when "accepting", "reviewing"
|
||||
when "accepting", "reviewing", "finished"
|
||||
%w[random]
|
||||
when "publishing_prices", "balloting", "reviewing_ballots"
|
||||
%w[random price]
|
||||
when "finished"
|
||||
%w[random]
|
||||
else
|
||||
%w[random confidence_score]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user