Skip to content

fix: unused_enumerated skip split usage across chained closures - #6743

Closed
wyf027 wants to merge 1 commit into
realm:mainfrom
wyf027:fix/unused-enumerated-chained-closures-5600
Closed

wyf027 wants to merge 1 commit into
realm:mainfrom
wyf027:fix/unused-enumerated-chained-closures-5600

Conversation

@wyf027

@wyf027 wyf027 commented May 31, 2026

Copy link
Copy Markdown

Fixes #5600

Made with Cursor

When offset and element are each used in different trailing closures
chained after enumerated() (e.g. first then flatMap), do not report
either member as unused.

Fixes #5600
@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 AI 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 reopen this one.

@github-actions github-actions Bot closed this May 31, 2026
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.

[0.55.1] False positive on unused_element where element and index are used separately in subsequent blocks

1 participant