-
Notifications
You must be signed in to change notification settings - Fork 18
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
Issue 167 #184
Conversation
return AvoidReturningWidgetsParameters( | ||
exclude: exclude, | ||
exclude: ExcludeParameters.fromJson( | ||
excludeList: json['exclude'] as Iterable, |
There was a problem hiding this comment.
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.
|
||
bool _hasThrowExpression(Statement node) { | ||
final visitor = ThrowExpressionVisitor(); | ||
node.accept(visitor); | ||
return visitor.nodes.isNotEmpty; | ||
} |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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?
class ExcludeRule { | |
class ExcludeRule { |
No description provided.