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

Proposal: Add a new diagnostic type: NoMethodByNil #938

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tk0miya
Copy link
Contributor

@tk0miya tk0miya commented Oct 22, 2023

Add a new diagnostic type; NoMethodByNil, that is emitted to no method calls for the objects having optional types. It's separated from NoMethod to control the visiblity of these diagnostics individually.

It's useful to find the methods not having appropriate types on checking the Ruby application by filtering NoMethod diagnostics.

@tk0miya tk0miya force-pushed the NoMethodByNil branch 2 times, most recently from d7a79db to bae8066 Compare October 22, 2023 17:18
Add a new diagnostic type; NoMethodByNil, that is emitted to no method
calls for the objects having optional types.  It's separated from
NoMethod to control the visiblity of these diagnostics individually.

It's useful to find the methods not having appropriate types on checking
the Ruby application by filtering NoMethod diagnostics.
@tk0miya tk0miya changed the title Add a new diagnostic type: NoMethodByNil Proposal: Add a new diagnostic type: NoMethodByNil Oct 22, 2023
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.

1 participant