Skip to content

refactor: migrate double_literal_format to analysis_server_plugin#281

Merged
andrew-bekhiet-solid merged 3 commits into
analysis_server_migrationfrom
274-migrate-double_literal_format
Jun 10, 2026
Merged

refactor: migrate double_literal_format to analysis_server_plugin#281
andrew-bekhiet-solid merged 3 commits into
analysis_server_migrationfrom
274-migrate-double_literal_format

Conversation

@andrew-bekhiet-solid

Copy link
Copy Markdown
Collaborator

docs: improve code docs
Fixes #274

@andrew-bekhiet-solid andrew-bekhiet-solid linked an issue Jun 9, 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 double_literal_format lint rule and its quick fix to use the new analysis_server_plugin API, migrating from SolidLintRule to MultiAnalysisRule and DartFix to ParsedCorrectionProducer. It also introduces a dedicated visitor (DoubleLiteralFormatVisitor) and comprehensive unit tests. A bug was identified in _correctTrailingZeroLexeme where double literals with an uppercase E exponent (e.g., 1.20E0) are not handled correctly, which can lead to invalid Dart syntax. A robust, non-recursive implementation was suggested to handle both lowercase e and uppercase E exponents.

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.

test: handle exponentials in test cases

@solid-danylosafonov solid-danylosafonov 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.

I think message should be changed, otherwise LGTM

Comment thread lib/src/lints/double_literal_format/double_literal_format_rule.dart Outdated
@andrew-bekhiet-solid andrew-bekhiet-solid merged commit e5eef63 into analysis_server_migration Jun 10, 2026
0 of 2 checks passed
@andrew-bekhiet-solid andrew-bekhiet-solid deleted the 274-migrate-double_literal_format branch June 10, 2026 14:27
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 double_literal_format

2 participants