no_magic_numbers
doesnt work with tuple destructuring
#5305
Labels
bug
Unexpected and reproducible misbehavior.
good first issue
Issue to be taken up by new contributors yet unfamiliar with the project.
New Issue Checklist
Describe the bug
code like
still reports
No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
while similar code
doesnt cause any lint violations
Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)? 0.53.0If so, paste their relative paths and respective contents.
xcodebuild -version
)? Xcode 15.0.1, Build version 15A507echo "[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: