-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
shorthand_operator: false positive: seconds = seconds * 60 + value
#1254
Comments
Are you sure you're using |
@marcelofabri I am using 0.16.1. However I made mistake in the repro in this issue, I am very sorry. My original comment is now updated with the correct repro. |
@dusek Thanks for updating, I could reproduce it now. For now, you can either wrap the multiplication in parentheses ( |
seconds = 60*seconds + value
seconds = seconds * 60 + value
`seconds = seconds * 60 + value` is no longer triggered see realm#1254
using |
seconds = seconds * 60 + value
We don't want to rewrite it to
as that is simply 2 lines and somehow destroys the code and mind flow.
Swiflint: 0.16.1
The text was updated successfully, but these errors were encountered: