Feature: find extra parentheses that can be removed #214
Labels
dependencies
Pull requests that update a dependency file
feature
New feature or request
help wanted
Extra attention is needed
level:advanced
Needs a lot of care
Milestone
Rule request
Thesis
There are cases when parentheses can be removed. Like:
x = ('string')
.There are also examples when it can not be removed:
x = (1 + 3) * 2
There are also cases when they should not be removed (since I prefer to use
tuple
with explicit parentheses):x = (1, 2)
.Reasoning
This will increase consistency.
Format
This should be a separate plugin. Because I am sure that this will be impossible to achieve without
logical_line
param.Related: https://rules.sonarsource.com/python/RSPEC-1110
The text was updated successfully, but these errors were encountered: