Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Exclude copyWith method from number_of_parameters rule#196

Merged
yurii-prykhodko-solid merged 5 commits into
solid-software:mastersolid-software/solid_lints:masterfrom
Aygistov:Issue-124-exclude-copy_with-method-from-number_of_parameters-ruleAygistov/solid_lints:Issue-124-exclude-copy_with-method-from-number_of_parameters-ruleCopy head branch name to clipboard
Jan 31, 2025
Merged

Exclude copyWith method from number_of_parameters rule#196
yurii-prykhodko-solid merged 5 commits into
solid-software:mastersolid-software/solid_lints:masterfrom
Aygistov:Issue-124-exclude-copy_with-method-from-number_of_parameters-ruleAygistov/solid_lints:Issue-124-exclude-copy_with-method-from-number_of_parameters-ruleCopy head branch name to clipboard

Conversation

@Aygistov

@Aygistov Aygistov commented Jan 30, 2025

Copy link
Copy Markdown
Contributor

Closes #124

@yurii-prykhodko-solid yurii-prykhodko-solid left a comment

Copy link
Copy Markdown
Collaborator

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 yurii-prykhodko-solid left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment thread lint_test/analysis_options.yaml Outdated
Comment on lines +18 to +19
- method_name: avoidNumberOfParameters
- method_name: avoidNumberOfParameters
- method_name: copyWith

Copy link
Copy Markdown
Collaborator

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.

Copy link
Copy Markdown
Contributor Author

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 yurii-prykhodko-solid left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment thread CHANGELOG.md Outdated
Comment thread lint_test/analysis_options.yaml Outdated
@yurii-prykhodko-solid yurii-prykhodko-solid merged commit 05be4fa into solid-software:master Jan 31, 2025
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.

Exclude copyWith method from number_of_parameters rule

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.