This cop checks for the presence of superfluous parentheses around the condition of if/unless/while/until.
# File lib/rubocop/cop/style/parentheses_around_condition.rb, line 11 def on_if(node) return if ternary_op?(node) process_control_op(node) end
Generated with the Darkfish Rdoc Generator 2.