Skip to content

Fix explicit_self false positives around string interpolation - #6662

Merged
SimplyDanny merged 1 commit into
mainfrom
explicit-self-in-string-interpolation
May 25, 2026
Merged

SimplyDanny merged 1 commit into
mainfrom
explicit-self-in-string-interpolation

Conversation

@SimplyDanny

@SimplyDanny SimplyDanny commented May 24, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #6611.

Follow-up of #6610.

@SwiftLintBot

SwiftLintBot commented May 24, 2026 •

Copy link
Copy Markdown
1 Warning
⚠️ This PR may need tests.
19 Messages
📖 Building this branch resulted in a binary size of 27458.24 KiB vs 27457.38 KiB when built on main (0% larger).
📖 Linting Aerial with this PR took 0.75 s vs 0.75 s on main (0% slower).
📖 Linting Alamofire with this PR took 1.01 s vs 1.02 s on main (0% faster).
📖 Linting Brave with this PR took 6.95 s vs 6.96 s on main (0% faster).
📖 Linting DuckDuckGo with this PR took 28.31 s vs 28.35 s on main (0% faster).
📖 Linting Firefox with this PR took 11.91 s vs 11.96 s on main (0% faster).
📖 Linting Kickstarter with this PR took 8.09 s vs 8.09 s on main (0% slower).
📖 Linting Moya with this PR took 0.42 s vs 0.42 s on main (0% slower).
📖 Linting NetNewsWire with this PR took 2.69 s vs 2.72 s on main (1% faster).
📖 Linting Nimble with this PR took 0.62 s vs 0.62 s on main (0% slower).
📖 Linting PocketCasts with this PR took 7.79 s vs 7.72 s on main (0% slower).
📖 Linting Quick with this PR took 0.38 s vs 0.39 s on main (2% faster).
📖 Linting Realm with this PR took 2.83 s vs 2.88 s on main (1% faster).
📖 Linting Sourcery with this PR took 1.79 s vs 1.77 s on main (1% slower).
📖 Linting Swift with this PR took 4.52 s vs 4.53 s on main (0% faster).
📖 Linting SwiftLintPerformanceTests with this PR took 0.28 s vs 0.3 s on main (6% faster).
📖 Linting VLC with this PR took 1.18 s vs 1.14 s on main (3% slower).
📖 Linting Wire with this PR took 18.15 s vs 18.21 s on main (0% faster).
📖 Linting WordPress with this PR took 12.21 s vs 12.21 s on main (0% slower).

Generated by 🚫 Danger

@jffmrk jffmrk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This works on my test project and our main project. Thanks for simplifying things!

@SimplyDanny
SimplyDanny force-pushed the explicit-self-in-string-interpolation branch from 16d6205 to 2f9f149 Compare May 25, 2026 08:22
@SimplyDanny
SimplyDanny enabled auto-merge (squash) May 25, 2026 08:23
@SimplyDanny
SimplyDanny merged commit 43ce7e2 into main May 25, 2026
21 checks passed
@SimplyDanny
SimplyDanny deleted the explicit-self-in-string-interpolation branch May 25, 2026 08:53
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.

Bug: explicit_self false positive with string interpolation

3 participants