Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 314 Bytes

Style-RedundantParentheses.md

File metadata and controls

21 lines (13 loc) · 314 Bytes

Pattern: Redundant parentheses

Issue: -

Description

This rule checks for redundant parentheses.

Examples

# bad
(x) if ((y.z).nil?)

# good
x if y.z.nil?

Further Reading