Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a6d5a17

Browse filesBrowse files
committed
Use AST::Node#call_type?
1 parent a573855 commit a6d5a17
Copy full SHA for a6d5a17

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/rubocop/cop/mixin/trailing_comma.rb

Copy file name to clipboardExpand all lines: lib/rubocop/cop/mixin/trailing_comma.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def allowed_multiline_argument?(node)
106106
end
107107

108108
def elements(node)
109-
return node.children unless %i[csend send].include?(node.type)
109+
return node.children unless node.call_type?
110110

111111
node.arguments.flat_map do |argument|
112112
# For each argument, if it is a multi-line hash without braces,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.