Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip tuples for no_magic_numbers rule #5327

Conversation

mildm8nnered
Copy link
Collaborator

@mildm8nnered mildm8nnered commented Nov 4, 2023

Now ignores magic numbers in tuple assignments like

let (httpStatusCodeErrorLowerBound, httpStatusCodeErrorUpperBound) = (400, 599)

OSS checks look good to me.

Resolves #5305 by skipping magic numbers in tuple expressions altogether.

@SwiftLintBot
Copy link

SwiftLintBot commented Nov 4, 2023

90 Messages
📖 Linting Aerial with this PR took 0.16s vs 0.16s on main (0% slower)
📖 Linting Alamofire with this PR took 0.12s vs 0.12s on main (0% slower)
📖 Linting Brave with this PR took 0.55s vs 0.55s on main (0% slower)
📖 Linting DuckDuckGo with this PR took 0.39s vs 0.39s on main (0% slower)
📖 Linting Firefox with this PR took 0.54s vs 0.53s on main (1% slower)
📖 Linting Kickstarter with this PR took 0.59s vs 0.6s on main (1% faster)
📖 Linting Moya with this PR took 0.14s vs 0.14s on main (0% slower)
📖 Linting NetNewsWire with this PR took 0.23s vs 0.23s on main (0% slower)
📖 Linting Nimble with this PR took 0.12s vs 0.12s on main (0% slower)
📖 Linting PocketCasts with this PR took 0.55s vs 0.55s on main (0% slower)
📖 Linting Quick with this PR took 0.09s vs 0.09s on main (0% slower)
📖 Linting Realm with this PR took 0.46s vs 0.46s on main (0% slower)
📖 Linting Sourcery with this PR took 0.26s vs 0.26s on main (0% slower)
📖 Linting VLC with this PR took 0.16s vs 0.16s on main (0% slower)
📖 Linting Wire with this PR took 1.11s vs 1.11s on main (0% slower)
📖 Linting WordPress with this PR took 0.81s vs 0.81s on main (0% slower)
📖 This PR fixed a violation in Brave: /Sources/Brave/Frontend/Browser/New Tab Page/Sections/FavoritesSectionProvider.swift:63:23: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Brave: /Sources/Brave/Frontend/Browser/New Tab Page/Sections/FavoritesSectionProvider.swift:63:31: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1034:28: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1034:39: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1034:50: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1045:28: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1045:39: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1045:50: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1166:28: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1166:40: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1166:51: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1202:28: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1202:42: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1202:53: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1282:37: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1282:57: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1323:37: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1323:48: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1323:59: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1398:37: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1398:52: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1398:63: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1431:37: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1431:52: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1431:63: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1461:37: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1461:48: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1461:59: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1493:37: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1493:48: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1493:59: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1714:39: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1714:50: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1714:60: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1807:39: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1807:50: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1807:60: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1897:39: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1897:50: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:1897:60: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3059:37: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3059:48: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3059:58: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3136:39: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3136:50: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3136:60: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3305:39: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3305:50: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3305:60: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3440:39: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3440:50: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3440:60: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3592:39: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3592:50: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3592:60: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3858:39: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3858:50: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:3858:60: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:4086:39: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:4086:50: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:4086:60: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:4300:39: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:4300:50: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:4300:60: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:540:57: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:540:66: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:540:78: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:632:57: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:632:66: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:632:78: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:714:57: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Kickstarter: /Library/ViewModels/PledgeViewModelTests.swift:714:78: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Wire: /wire-ios-data-model/Tests/Source/Model/Messages/ZMClientMessageTests+Location.swift:27:54: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)
📖 This PR fixed a violation in Wire: /wire-ios-data-model/Tests/Source/Model/Messages/ZMClientMessageTests+Location.swift:27:64: warning: No Magic Numbers Violation: Magic numbers should be replaced by named constants (no_magic_numbers)

Generated by 🚫 Danger

@mildm8nnered mildm8nnered marked this pull request as ready for review November 4, 2023 22:22
@mildm8nnered mildm8nnered changed the title skip tuples skip tuples for no_magic_numbers rule Nov 4, 2023
@mildm8nnered mildm8nnered force-pushed the mildm8nnered-ignore-magic-numbers-in-tuples-again branch from cb70268 to 101d4da Compare November 8, 2023 01:51
@SimplyDanny
Copy link
Collaborator

Looking at the OSS findings, there's another case I haven't thought of before. If there are more complicated expression in a tuple initialization like in let a = (2 + 3, f(arg: 47)), the rule won't trigger now. Is this expected? In let a = f(4) the rule would trigger on 4, so not triggering in tuples seems like an inconsistency then.

@mildm8nnered
Copy link
Collaborator Author

Looking at the OSS findings, there's another case I haven't thought of before. If there are more complicated expression in a tuple initialization like in let a = (2 + 3, f(arg: 47)), the rule won't trigger now. Is this expected? In let a = f(4) the rule would trigger on 4, so not triggering in tuples seems like an inconsistency then.

So let a = f(4) does trigger, even though it's technically a tuple, because there were OSS samples like let imageHeight = (width - ↓24) that I wanted to still warn on.

I thought the OSS violations we ended up with looked ok, but let a = (2 + 3, f(arg: 47)) does bother me. That would not violate anymore.

Maybe drop back to just allowing

let (a, b) = (5, 10)

That would still allow

let (a, b) = (2 + 3, f(arg: 47))

or we could go further and require that the tuple elements all be simple expressions.

@SimplyDanny
Copy link
Collaborator

... or we could go further and require that the tuple elements all be simple expressions.

I think that's the way to go. The rule currently triggers on let a = 2 + 3 but not on let a = 3. It should be the same for tuples in my opinion. I'm open for better arguments though.

@mildm8nnered
Copy link
Collaborator Author

... or we could go further and require that the tuple elements all be simple expressions.

I think that's the way to go. The rule currently triggers on let a = 2 + 3 but not on let a = 3. It should be the same for tuples in my opinion. I'm open for better arguments though.

Sounds good to me - let (a, b) = (5, 10) all good. And a nope for anything else, or complex expressions.

@SimplyDanny
Copy link
Collaborator

... or we could go further and require that the tuple elements all be simple expressions.

I think that's the way to go. The rule currently triggers on let a = 2 + 3 but not on let a = 3. It should be the same for tuples in my opinion. I'm open for better arguments though.

Sounds good to me - let (a, b) = (5, 10) all good. And a nope for anything else, or complex expressions.

Just to be sure: Also let a = (3, 2) wouldn't trigger, right?

@mildm8nnered mildm8nnered force-pushed the mildm8nnered-ignore-magic-numbers-in-tuples-again branch from a12ad34 to 9f2d668 Compare November 11, 2023 00:44
@mildm8nnered
Copy link
Collaborator Author

... or we could go further and require that the tuple elements all be simple expressions.

I think that's the way to go. The rule currently triggers on let a = 2 + 3 but not on let a = 3. It should be the same for tuples in my opinion. I'm open for better arguments though.

Sounds good to me - let (a, b) = (5, 10) all good. And a nope for anything else, or complex expressions.

Just to be sure: Also let a = (3, 2) wouldn't trigger, right?

ok - so I think I have this working.

As long as every element of the RHS tuple is an Integer or Float, we will allow it through, so

let a = (3, 2) is fine, as is let (a, b) = (3, 2)

Example("let a = b / 100.0")
Example("let a = b / 100.0"),
Example("let (lowerBound, upperBound) = (400, 599)"),
Example("let a = (5, 10)")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also have a test for labeled tuple elements and a tuple used somewhere else that triggers the rule.

After that, I promise to accept the change. 😇

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I added those examples, and also extended the allowed tuple elements to include string literals, as cases like let notFound = (404, "Not Found") seemed reasonable to skip as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But hold off on merging for right now @SimplyDanny - I want to checkout the OSS results, which now seem to have suspiciously lower fixes compared to before

Copy link
Collaborator Author

@mildm8nnered mildm8nnered Nov 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok - that looks better. Should be good to go now 🤞 once CI passes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The strings and booleans make me think again. We now have:

let a = (3, 4)      // ok
let a = (3, "a")    // ok 
let a = (3, b)      // triggers on 3
let a = (3, (4, 5)) // triggers on all numbers
let a = (true, 4)   // ok
let a = (3, 4 + 5)  // triggers on all numbers

Does this make sense? Is it consistent and logical? 🤔 We might need to come up with a better set of rules for tuples I'm afraid.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I totally get your point, but actually, all of the above examples would have been violations before, and there were enough reasonably allowable fixed violations in the OSS tests, that I think the change will add some value for some users.

let a = (3, b)      // triggers on 3
let a = (3, (4, 5)) // triggers on all numbers
let a = (3, 4 + 5)  // triggers on all numbers

will still be violations, but in the OSS code, there were few or none of these.

Users of the above examples would not be put at any disadvantage by this change - they would just need to disable the rule, like they would today.

I could definitely see a case for allowing let a = (3, (4, 5)), but if someone wants that to pass, they can always request that we extend the coverage.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough. Let's have it merged then. Good job!

@mildm8nnered mildm8nnered force-pushed the mildm8nnered-ignore-magic-numbers-in-tuples-again branch from e08d78f to 3d21880 Compare November 12, 2023 20:07
@SimplyDanny SimplyDanny merged commit 33e3593 into realm:main Nov 15, 2023
4 checks passed
u-abyss pushed a commit to u-abyss/SwiftLint that referenced this pull request Dec 16, 2023
MartijnAmbagtsheer pushed a commit to MartijnAmbagtsheer/SwiftLint that referenced this pull request Dec 20, 2023
@mildm8nnered mildm8nnered deleted the mildm8nnered-ignore-magic-numbers-in-tuples-again branch March 31, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no_magic_numbers doesnt work with tuple destructuring
3 participants