]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/MultilineBlockLayout in app/controllers/auto_completes_c...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 17:11:06 +0000 (17:11 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 17:11:06 +0000 (17:11 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19045 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/controllers/auto_completes_controller.rb

index 03b6224eb5c24d200b59f418ab27228514560878..ba0a284aecab93e952e5fd9aa4549a95b63c643e 100644 (file)
@@ -164,11 +164,6 @@ Layout/MultilineArrayBraceLayout:
     - 'app/helpers/settings_helper.rb'
     - 'app/helpers/users_helper.rb'
 
-# Cop supports --auto-correct.
-Layout/MultilineBlockLayout:
-  Exclude:
-    - 'app/controllers/auto_completes_controller.rb'
-
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle.
 # SupportedStyles: symmetrical, new_line, same_line
index 3368853495514bdb1c296db80497515a3f8015d3..d0554767ec67579c5e940afce2bb3b7d29e2492a 100644 (file)
@@ -53,10 +53,11 @@ class AutoCompletesController < ApplicationController
   end
 
   def format_issues_json(issues)
-    issues.map {|issue| {
-      'id' => issue.id,
-      'label' => "#{issue.tracker} ##{issue.id}: #{issue.subject.to_s.truncate(60)}",
-      'value' => issue.id
+    issues.map {|issue|
+      {
+        'id' => issue.id,
+        'label' => "#{issue.tracker} ##{issue.id}: #{issue.subject.to_s.truncate(60)}",
+        'value' => issue.id
       }
     }
   end