]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/AccessModifierIndentation and Layout/EmptyLinesArou...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 16 Oct 2019 14:36:43 +0000 (14:36 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 16 Oct 2019 14:36:43 +0000 (14:36 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18695 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/models/tracker.rb

index 0ac5d787ce717aa75fe6b43d00363629d954f8af..c5b9ea54fb0963c6ede6ba71026e881ccf03fd2c 100644 (file)
@@ -24,7 +24,6 @@ Layout/AccessModifierIndentation:
     - 'app/controllers/wiki_controller.rb'
     - 'app/models/role.rb'
     - 'app/models/setting.rb'
-    - 'app/models/tracker.rb'
 
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle, IndentationWidth.
@@ -143,7 +142,6 @@ Layout/EmptyLinesAroundAccessModifier:
     - 'app/controllers/messages_controller.rb'
     - 'app/controllers/previews_controller.rb'
     - 'app/controllers/timelog_controller.rb'
-    - 'app/models/tracker.rb'
     - 'config/initializers/10-patches.rb'
     - 'lib/redmine/syntax_highlighting.rb'
 
index 0f1bb9ce4e4ab77298901f8c0da1ad986159e57d..b2c80be2f79994dae74a8decd9ab08630b2a4f37 100644 (file)
@@ -140,7 +140,8 @@ class Tracker < ActiveRecord::Base
     end
   end
 
-private
+  private
+
   def check_integrity
     raise "Cannot delete tracker" if Issue.where(:tracker_id => self.id).any?
   end