Skip to content

fix: unused_declaration skip UIKit/WebKit delegate methods#6707

Closed
leno23 wants to merge 3 commits into
realm:mainfrom
leno23:fix/unused-declaration-delegate-4706
Closed

fix: unused_declaration skip UIKit/WebKit delegate methods#6707
leno23 wants to merge 3 commits into
realm:mainfrom
leno23:fix/unused-declaration-delegate-4706

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 31, 2026

Fixes #4706\n\n## Test plan\n- [x] Rule generated tests

Made with Cursor

leno23 added 3 commits May 30, 2026 12:27
Skip classes inheriting UIKit/WebKit/NS delegate protocols and
subclass protocol witness methods referenced via key.related_decls.

Fixes realm#4706
Linux CI cannot compile UIKit/WebKit imports in rule examples.
macOS hosts without UIKit (non-Catalyst) cannot compile UIKit imports in
analyzer rule examples.
@github-actions
Copy link
Copy Markdown
Contributor

Hi @leno23, thanks for opening this PR.

I'm automatically closing it because there are earlier PRs from your account with open review discussions that haven't received a reply yet.

There is nothing wrong with using tools to help — but open source thrives on collaboration and engagement.
Please read and respond to reviewer feedback rather than opening new PRs without addressing earlier discussions.

Once you've addressed the open threads in your previous PRs, feel free to open a new one.

@github-actions github-actions Bot closed this May 31, 2026
@SwiftLintBot
Copy link
Copy Markdown

1 Warning
⚠️ This PR may need tests.
19 Messages
📖 Building this branch resulted in a binary size of 27519.87 KiB vs 27519.12 KiB when built on main (0% larger).
📖 Linting Aerial with this PR took 0.75 s vs 0.78 s on main (3% faster).
📖 Linting Alamofire with this PR took 1.05 s vs 1.04 s on main (0% slower).
📖 Linting Brave with this PR took 7.16 s vs 7.17 s on main (0% faster).
📖 Linting DuckDuckGo with this PR took 29.41 s vs 29.35 s on main (0% slower).
📖 Linting Firefox with this PR took 12.36 s vs 12.34 s on main (0% slower).
📖 Linting Kickstarter with this PR took 8.33 s vs 8.34 s on main (0% faster).
📖 Linting Moya with this PR took 0.44 s vs 0.43 s on main (2% slower).
📖 Linting NetNewsWire with this PR took 2.72 s vs 2.68 s on main (1% slower).
📖 Linting Nimble with this PR took 0.65 s vs 0.64 s on main (1% slower).
📖 Linting PocketCasts with this PR took 8.02 s vs 8.02 s on main (0% slower).
📖 Linting Quick with this PR took 0.39 s vs 0.42 s on main (7% faster).
📖 Linting Realm with this PR took 2.93 s vs 2.95 s on main (0% faster).
📖 Linting Sourcery with this PR took 1.86 s vs 1.82 s on main (2% slower).
📖 Linting Swift with this PR took 4.64 s vs 4.65 s on main (0% faster).
📖 Linting SwiftLintPerformanceTests with this PR took 0.16 s vs 0.16 s on main (0% slower).
📖 Linting VLC with this PR took 1.2 s vs 1.23 s on main (2% faster).
📖 Linting Wire with this PR took 18.46 s vs 18.41 s on main (0% slower).
📖 Linting WordPress with this PR took 12.63 s vs 12.58 s on main (0% slower).

Generated by 🚫 Danger

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.

unused_declaration false positives on SceneDelegate and unrelated delegate methods.

2 participants