Skip to content

Migrate avoid_late_keyword rule (default behavior) and tests#231

Open
Islam-Shaaban-Ibrahim wants to merge 25 commits into
analysis_server_migrationfrom
migrate/avoid_late_keyword
Open

Migrate avoid_late_keyword rule (default behavior) and tests#231
Islam-Shaaban-Ibrahim wants to merge 25 commits into
analysis_server_migrationfrom
migrate/avoid_late_keyword

Conversation

@Islam-Shaaban-Ibrahim

Copy link
Copy Markdown

No description provided.

@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 migrates the AvoidLateKeywordRule to the AnalysisRule framework, introducing a dedicated visitor and unit tests. The review highlights a regression where configuration parameters for ignoring types and allowing initializers were removed, and notes a missing import in the visitor class that will cause a compilation error.

Comment thread lib/src/lints/avoid_late_keyword/avoid_late_keyword_rule.dart Outdated
@solid-vovabeloded

Copy link
Copy Markdown
Collaborator

@Islam-Shaaban-Ibrahim, I believe this rule needs custom params to allow users to configure it.

@andrew-bekhiet-solid andrew-bekhiet-solid force-pushed the migrate/avoid_late_keyword branch from 0f69812 to 730d708 Compare June 3, 2026 23:15
@andrew-bekhiet-solid andrew-bekhiet-solid changed the base branch from analysis_server_migration to implementation-of-parameter-parser June 3, 2026 23:15
@andrew-bekhiet-solid andrew-bekhiet-solid marked this pull request as draft June 3, 2026 23:16

@danylo-safonov-solid danylo-safonov-solid 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.

lgtm

@andrew-bekhiet-solid andrew-bekhiet-solid linked an issue Jun 9, 2026 that may be closed by this pull request
Dariaa14 and others added 21 commits June 10, 2026 17:32
style: improve variable names
refactor: use root package path instead of library path
refactor: use pattern matching to reduce nesting
refactor: allow mocking resource provider
refactor: extract CachedPackageRules model
refactor: use Map<String, Object?> instead of LintOptions
as the enabled field is implicitly true for all rules that the analyzer processes
remove RuleConfig as it is no longer needed
@andrew-bekhiet-solid andrew-bekhiet-solid force-pushed the implementation-of-parameter-parser branch from d51e1bf to 0975ba7 Compare June 10, 2026 14:34
@andrew-bekhiet-solid andrew-bekhiet-solid force-pushed the migrate/avoid_late_keyword branch from 730d708 to 6092317 Compare June 10, 2026 14:49
Base automatically changed from implementation-of-parameter-parser to analysis_server_migration June 10, 2026 16:30
@andrew-bekhiet-solid andrew-bekhiet-solid marked this pull request as ready for review June 10, 2026 22:10
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_late_keyword

5 participants