-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
fixesRelated to suggested fixes for violationsRelated to suggested fixes for violations
Description
Summary
It seems like it would be fairly trivial to implement an autofix for ISC003. No refactoring of the string would be necessary. If adjacent nodes are any type of string literal (normal, format, raw, raw+format) and there is a + joining them, the + can be removed without affecting other lines. This works for strings with mixtures of string literals and non-literals as well.
a = (
"123" +
"456"
+ my_string +
"789"
+ "0"
)to ...
a = (
"123"
"456"
+ my_string +
"789"
"0"
)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
fixesRelated to suggested fixes for violationsRelated to suggested fixes for violations