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

Checking the types of @return, type hints and inferred in return #1123

Open
i582 opened this issue Aug 28, 2021 · 0 comments
Open

Checking the types of @return, type hints and inferred in return #1123

i582 opened this issue Aug 28, 2021 · 0 comments
Labels
epic Tracking the progress of a complex task

Comments

@i582
Copy link
Contributor

i582 commented Aug 28, 2021

At the moment, NoVerify does not have any checks that would say that the described type is T, but the returned type is V and similar ones.

This issue was created to track the implementation of such checks.

The following checks should be added:

  • Matching @return and type hint
  • Checking the correspondence of the types @return and type hint with the types that will be inferred for each return inside the function
  • Check that the type T is passed to the function, and not the type V
  • Check that there is no return; for a function with a non-void return type

Most likely #1037 issue should have been closed earlier.

The following issue has already described some of the problems that will be covered by the checks above:
#516
#561
#563
#849

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Tracking the progress of a complex task
Projects
None yet
Development

No branches or pull requests

1 participant