You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ISC001 and ISC002 checks for implicitly concatenated strings over a single or multiple lines.
The rules needs to be updated to account for the f-strings. The implementation using ranges to check if 2 consecutive strings are implicitly concatenated.
Proposed solution
We'll need to get the f-string range from the Indexer when we encounter a FStringStart token.
Another solution would be to consume all of the tokens from FStringStart to FStringEnd to get the range. I think using the Indexer is better.
The text was updated successfully, but these errors were encountered:
ISC001
andISC002
checks for implicitly concatenated strings over a single or multiple lines.The rules needs to be updated to account for the f-strings. The implementation using ranges to check if 2 consecutive strings are implicitly concatenated.
Proposed solution
Indexer
when we encounter aFStringStart
token.FStringStart
toFStringEnd
to get the range. I think using theIndexer
is better.The text was updated successfully, but these errors were encountered: