Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Improved avoid_late_keyword to support ignoring the subtype of the node type (#157)#158

Merged
illia-romanenko merged 7 commits into
solid-software:mastersolid-software/solid_lints:masterfrom
Yarl745:masterYarl745/solid_lints:masterCopy head branch name to clipboard
Apr 18, 2024
Merged

Improved avoid_late_keyword to support ignoring the subtype of the node type (#157)#158
illia-romanenko merged 7 commits into
solid-software:mastersolid-software/solid_lints:masterfrom
Yarl745:masterYarl745/solid_lints:masterCopy head branch name to clipboard

Conversation

@Yarl745

@Yarl745 Yarl745 commented Apr 15, 2024

Copy link
Copy Markdown
Contributor

@yurii-prykhodko-solid yurii-prykhodko-solid left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

General logic LGTM, great start!;
Implementation-wise -- I think we are relying on raw regexp/string matching too much here. We should try and leverage the static types and utilities that analyzer/ast provides us.

Here's some stuff we may be able to use:

We should also be more vigorous about testing this. I've added a couple ideas, but I'm sure you can expand on them.

Comment thread lint_test/analysis_options.yaml Outdated
Comment thread lint_test/avoid_late_keyword_test.dart Outdated
Comment thread lib/src/utils/types_utils.dart Outdated
Comment thread lib/src/utils/types_utils.dart Outdated
Comment thread lib/src/utils/types_utils.dart Outdated
Yarl745 and others added 3 commits April 16, 2024 10:25
Co-authored-by: Yurii Prykhodko <144313329+yurii-prykhodko-solid@users.noreply.github.com>
Co-authored-by: Yurii Prykhodko <144313329+yurii-prykhodko-solid@users.noreply.github.com>
Comment thread lib/src/utils/node_utils.dart Outdated
Comment thread lib/src/lints/avoid_late_keyword/avoid_late_keyword_rule.dart
Comment thread lib/src/utils/node_utils.dart Outdated
Comment thread lib/src/utils/node_utils.dart Outdated
Comment thread lib/src/utils/node_utils.dart Outdated
Comment thread lib/src/utils/types_utils.dart Outdated
Comment thread lib/src/utils/node_utils.dart Outdated
Comment thread lint_test/avoid_late_keyword_test.dart

@yurii-prykhodko-solid yurii-prykhodko-solid left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@illia-romanenko illia-romanenko left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM - thanks

@illia-romanenko illia-romanenko merged commit 979131a into solid-software:master Apr 18, 2024
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.