mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
Fix a RuboCop offence Style/MethodDefParentheses (#32530).
git-svn-id: http://svn.redmine.org/redmine/trunk@20152 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user