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

Avoid debug print#134

Merged
yurii-prykhodko-solid merged 5 commits into
solid-software:mastersolid-software/solid_lints:masterfrom
Viktor-Mudrytskyi:avoid_debug_printViktor-Mudrytskyi/solid_lints:avoid_debug_printCopy head branch name to clipboard
Mar 12, 2024
Merged

Avoid debug print#134
yurii-prykhodko-solid merged 5 commits into
solid-software:mastersolid-software/solid_lints:masterfrom
Viktor-Mudrytskyi:avoid_debug_printViktor-Mudrytskyi/solid_lints:avoid_debug_printCopy head branch name to clipboard

Conversation

@Viktor-Mudrytskyi

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread CHANGELOG.md Outdated
Comment thread lib/src/lints/avoid_using_debug_print/avoid_using_debug_print_rule.dart Outdated
Comment thread lib/src/lints/avoid_using_debug_print/avoid_using_debug_print_rule.dart Outdated
void _handleVariableAssignmentDeclaration({
required AstNode node,
required ErrorReporter reporter,
required Iterable<SyntacticEntity> childEntities,

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.

unused arg; you're retrieving the childEntites from node.

Suggested change
required Iterable<SyntacticEntity> childEntities,

Comment on lines +114 to +120
if (rightOperand == null) {
return;
}

if (rightOperand is! Identifier) {
return;
}

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.

Simplify:

Suggested change
if (rightOperand == null) {
return;
}
if (rightOperand is! Identifier) {
return;
}
if (rightOperand == null || rightOperand is! Identifier) {
return;
}

Comment thread CHANGELOG.md

@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

@yurii-prykhodko-solid yurii-prykhodko-solid merged commit b6d5d69 into solid-software:master Mar 12, 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.

2 participants

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