Skip to content

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