-
Notifications
You must be signed in to change notification settings - Fork 25
feat: add named_parameters_ordering #204
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
Conversation
solid-vovabeloded
left a comment
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.
Great job so far, @Andrew-Bekhiet! I've added a couple of suggestions here - please, take a look.
lib/src/lints/named_parameters_ordering/models/parameter_type.dart
Outdated
Show resolved
Hide resolved
lib/src/lints/named_parameters_ordering/named_parameters_ordering_rule.dart
Outdated
Show resolved
Hide resolved
lib/src/lints/named_parameters_ordering/named_parameters_ordering_rule.dart
Outdated
Show resolved
Hide resolved
lib/src/lints/named_parameters_ordering/named_parameters_ordering_rule.dart
Outdated
Show resolved
Hide resolved
lib/src/lints/named_parameters_ordering/named_parameters_ordering_rule.dart
Outdated
Show resolved
Hide resolved
lib/src/lints/named_parameters_ordering/visitors/named_parameters_ordering_visitor.dart
Outdated
Show resolved
Hide resolved
solid-vovabeloded
left a comment
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.
LGTM, thanks!
|
I actually forgot to add the changes to CHANGELOG.md, I'll add them and let me know if I can merge it or if you're going to it instead |
extract models from visitor into their separate files rename some ParameterType enums to avoid using dart keywords add ParameterType.fromType remove unnecessary base class from documentation text perf(rule): make visitor a class member to avoid recreating new instance update test with new default ordering
a72cf5e to
419499e
Compare
related: #181
renamed super_required to required_super
Feel free to request changing the default parameters ordering