]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/ElseAlignment in app/models/issue_priority.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 18:11:44 +0000 (18:11 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 18:11:44 +0000 (18:11 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18669 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/models/issue_priority.rb

index 06a44db853547295e090fa563b50ce4d048951f3..97c5baccad1bbcaaf253f5b94795c924813def63 100644 (file)
@@ -72,7 +72,6 @@ Layout/BlockEndNewline:
 # SupportedStyles: case, end
 Layout/CaseIndentation:
   Exclude:
-    - 'app/models/issue_priority.rb'
     - 'app/models/issue_query.rb'
     - 'config/initializers/10-patches.rb'
     - 'lib/redmine/helpers/gantt.rb'
index 177a314bf979e91b7a7a72326c1fc91e7d3a70d4..106754293d70c05b8246829a6cca37e73534091a 100644 (file)
@@ -54,7 +54,8 @@ class IssuePriority < Enumeration
     if priorities.any?
       default = priorities.detect(&:is_default?) || priorities[(priorities.size - 1) / 2]
       priorities.each_with_index do |priority, index|
-        name = case
+        name =
+          case
           when priority.position == default.position
             "default"
           when priority.position < default.position