We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9152c2a commit 17724ceCopy full SHA for 17724ce
lib/rubocop/cop/rspec/output.rb
@@ -34,8 +34,7 @@ class Output < Base
34
...)
35
PATTERN
36
37
- # rubocop:disable Metrics/CyclomaticComplexity
38
- def on_send(node)
+ def on_send(node) # rubocop:disable Metrics/CyclomaticComplexity
39
return if node.parent&.call_type? || node.block_node
40
return if !output?(node) && !io_output?(node)
41
return if node.arguments.any? { |arg| arg.type?(:hash, :block_pass) }
@@ -44,7 +43,6 @@ def on_send(node)
44
43
45
add_offense(range)
46
end
47
- # rubocop:enable Metrics/CyclomaticComplexity
48
49
private
50
0 commit comments