]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/AccessModifierIndentation and Layout/EmptyLinesArou...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Oct 2019 13:44:04 +0000 (13:44 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Oct 2019 13:44:04 +0000 (13:44 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18824 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/controllers/messages_controller.rb

index c8b349f8328f09218df34697271039c01634b048..2931df7c8ef0454cc48265dfc19d0bc65f5a09dc 100644 (file)
@@ -18,7 +18,6 @@ Bundler/OrderedGems:
 # SupportedStyles: outdent, indent
 Layout/AccessModifierIndentation:
   Exclude:
-    - 'app/controllers/messages_controller.rb'
     - 'app/controllers/timelog_controller.rb'
     - 'app/controllers/wiki_controller.rb'
     - 'app/models/role.rb'
@@ -98,7 +97,6 @@ Layout/EmptyLines:
 # SupportedStyles: around, only_before
 Layout/EmptyLinesAroundAccessModifier:
   Exclude:
-    - 'app/controllers/messages_controller.rb'
     - 'app/controllers/previews_controller.rb'
     - 'app/controllers/timelog_controller.rb'
     - 'config/initializers/10-patches.rb'
index b6bcb283917288c4d88025a0b18a0aac8b4fa6b7..bbc6a35d4ded8700b7b8948eaf71eae71c6c0b90 100644 (file)
@@ -132,7 +132,8 @@ class MessagesController < ApplicationController
     render :partial => 'common/preview'
   end
 
-private
+  private
+
   def find_message
     return unless find_board
     @message = @board.messages.includes(:parent).find(params[:id])