Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 167 #184

Closed
wants to merge 4 commits into from
Closed

Conversation

StarovNikita
Copy link
Contributor

No description provided.

@StarovNikita StarovNikita deleted the issue-167 branch December 4, 2024 13:28
return AvoidReturningWidgetsParameters(
exclude: exclude,
exclude: ExcludeParameters.fromJson(
excludeList: json['exclude'] as Iterable,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can make this key reusable, so that all other rules use it consistently.

Comment on lines +75 to +80

bool _hasThrowExpression(Statement node) {
final visitor = ThrowExpressionVisitor();
node.accept(visitor);
return visitor.nodes.isNotEmpty;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please sync with master -- these changes have already been applied there.

class AvoidReturningWidgetsExclude {

/// Model class for ExcludeRule parameters
class ExcludeRule {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's think about better naming here, this isn't a rule.

ExcludedIdentifiersParameter maybe?

Suggested change
class ExcludeRule {
class ExcludeRule {

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