Skip to content
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

Feat: add no-setter-return #9

Merged
merged 8 commits into from
Sep 27, 2020
Merged

Conversation

magurotuna
Copy link
Contributor

This PR adds no-setter-return rule, requested in #4

Please merge this PR after #6, because some test cases cannot be passed without #6.

Comment on lines 207 to 209
// If there is a trailing comma, consumes it.
let _ = input.parse::<Token!(,)>();

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is related to #5, required to run cargo xtask docgen on rule_test! containing trailing comma.

@RDambrosio016 RDambrosio016 added C-enhancement Category: enhancement T-Runner This issue primary relates to the lint runner, rslint_core labels Sep 26, 2020
Copy link
Collaborator

@RDambrosio016 RDambrosio016 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!
Looks good to me except for a few minor nitpicks

rslint_core/src/groups/errors/no_setter_return.rs Outdated Show resolved Hide resolved
rslint_core/src/groups/errors/no_setter_return.rs Outdated Show resolved Hide resolved
rslint_core/src/groups/errors/no_setter_return.rs Outdated Show resolved Hide resolved
xtask/src/docgen/extract.rs Outdated Show resolved Hide resolved
@RDambrosio016 RDambrosio016 mentioned this pull request Sep 26, 2020
10 tasks
@magurotuna
Copy link
Contributor Author

@RDambrosio016 thanks for the detailed review! Addressed all the points. Please check again :)

@RDambrosio016
Copy link
Collaborator

Looks good to me!

@RDambrosio016 RDambrosio016 merged commit 266fa4d into rslint:dev Sep 27, 2020
@magurotuna magurotuna deleted the no-setter-return branch September 27, 2020 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: enhancement T-Runner This issue primary relates to the lint runner, rslint_core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants