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
object.property = !property This triggers a toggle_bool warning even though property is a local variable, and calling .toggle() on object.property might produce incorrect results.
Environment
SwiftLint version (run swiftlint version to be sure)? 0.28.1
Installation method used (Homebrew, CocoaPods, building from source, etc)? cocoapods
Which Xcode version are you using (check xcode-select -p)? 10.1
Do you have a sample that shows the issue? Run echo "object.property = !property" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue.
// This triggers a violation:
object.property = !property
The text was updated successfully, but these errors were encountered:
New Issue Checklist
Describe the bug
object.property = !property
This triggers a toggle_bool warning even thoughproperty
is a local variable, and calling.toggle()
onobject.property
might produce incorrect results.Environment
swiftlint version
to be sure)? 0.28.1xcode-select -p
)? 10.1echo "object.property = !property" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue.
The text was updated successfully, but these errors were encountered: