-
Notifications
You must be signed in to change notification settings - Fork 25
Exclude copyWith method from number_of_parameters rule #196
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
Exclude copyWith method from number_of_parameters rule #196
Conversation
yurii-prykhodko-solid
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.
Please add tests.
yurii-prykhodko-solid
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.
Also update the changelog, please.
lint_test/analysis_options.yaml
Outdated
| - method_name: avoidNumberOfParameters | ||
| - method_name: avoidNumberOfParameters | ||
| - method_name: copyWith |
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.
We should check that the standard rule set works -- not a custom subset that we define here.
Let's create a separate nested package inside of lint_test, with its own pubspec and a clean analysis_options which would just import the standard rule set -- and then test on that.
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.
Made changes, please check.
yurii-prykhodko-solid
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.
Looking good! Just a couple nits.
Closes #124