Skip to content

Add new diagnostic for setter methods#809

Merged
soutaro merged 6 commits intomasterfrom
attribute-setter
May 31, 2023
Merged

Add new diagnostic for setter methods#809
soutaro merged 6 commits intomasterfrom
attribute-setter

Conversation

@soutaro
Copy link
Owner

@soutaro soutaro commented May 31, 2023

Fixes #729

This PR adds two new Ruby diagnostics -- SetterBodyTypeMismatch and SetterReturnTypeMismatch. The users can configure the diagnostics to make type checking consistent with RuboCop offense.

@soutaro soutaro added this to the Steep 1.5 milestone May 31, 2023
@soutaro soutaro merged commit 3f6f7a8 into master May 31, 2023
@soutaro soutaro deleted the attribute-setter branch May 31, 2023 07:23
@soutaro soutaro added the Released The PR is already included in a published release label Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Released The PR is already included in a published release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positive warning for setter methods

1 participant