unnecessary_parentheses
NoteAdded in 0.6.0
What it does
Checks for expressions wrapped in multiple pairs of parentheses.
Why is this bad?
Repeated parentheses do not change the meaning of the expression and can make the code harder to read.
Example
((x + 1))Use instead:
(x + 1)