Skip to content

refactor: migrate avoid_unnecessary_type_casts#289

Open
andrew-bekhiet-solid wants to merge 3 commits into
analysis_server_migrationfrom
272-migrate-avoid_unnecessary_type_casts
Open

refactor: migrate avoid_unnecessary_type_casts#289
andrew-bekhiet-solid wants to merge 3 commits into
analysis_server_migrationfrom
272-migrate-avoid_unnecessary_type_casts

Conversation

@andrew-bekhiet-solid

Copy link
Copy Markdown
Collaborator

No description provided.

@andrew-bekhiet-solid andrew-bekhiet-solid linked an issue Jun 15, 2026 that may be closed by this pull request

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the avoid_unnecessary_type_casts lint rule and its associated quick fix to use the new analyzer API, replacing the deprecated custom_lint_builder implementation. It also adds a new reflective test suite for the rule. The review feedback highlights a potential bug in the quick fix's range calculation when dealing with descendant nodes of an AsExpression, as well as a couple of outdated doc comments that need to be corrected.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread lib/src/lints/avoid_unnecessary_type_casts/avoid_unnecessary_type_casts_rule.dart Outdated
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.

Migrate avoid_unnecessary_type_casts

1 participant