[0.55.1] False positive on unused_element
where element and index are used separately in subsequent blocks
#5600
Labels
bug
Unexpected and reproducible misbehavior.
New Issue Checklist
Describe the bug
The rule should not trigger when the enumerated index and element are used in separate subsequent blocks
Environment
swiftlint version
to be sure)? 0.55.1# insert yaml contents here
If so, paste their relative paths and respective contents.
xcodebuild -version
)? 15.3echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use
swiftlint lint --path [file here] --no-cache --enable-all-rules
.The text was updated successfully, but these errors were encountered: