]> source.dussan.org Git - redmine.git/commitdiff
Fix a RuboCop offence Style/MethodDefParentheses (#32530).
authorGo MAEDA <maeda@farend.jp>
Tue, 20 Oct 2020 14:44:12 +0000 (14:44 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 20 Oct 2020 14:44:12 +0000 (14:44 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20152 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
lib/redmine/menu_manager.rb

index b6a9a0cd4125b311f3700bd4b3799118bc813c8f..8458b87ca2f06beceeaca207300d928b19f88d57 100644 (file)
@@ -1152,13 +1152,6 @@ Style/MethodCallWithoutArgsParentheses:
     - 'lib/redmine/scm/adapters/cvs_adapter.rb'
     - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
 
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle.
-# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
-Style/MethodDefParentheses:
-  Exclude:
-    - 'lib/redmine/menu_manager.rb'
-
 Style/MethodMissingSuper:
   Exclude:
     - 'lib/redmine/views/builders/structure.rb'
index 3b8752a85155a0a0c0a2af70cac806e51ba073f9..db8e3e79cf8eb9dcfd651f57e4192854ba626109 100644 (file)
@@ -359,7 +359,7 @@ module Redmine
         @children.inject(1) {|sum, node| sum + node.size}
       end
 
-      def each &block
+      def each(&block)
         yield self
         children { |child| child.each(&block) }
       end