Diagnostic for functions that are not fully annotated #2294
PinewoodPip
started this conversation in
Ideas
Replies: 2 comments 4 replies
-
I want this really bad! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please try out the diagnostic |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes for one reason or another I end up forgetting to fully annotate the params or return values of a function. It would be helpful if there was a diagnostic that warned about functions whose parameters or returns are not fully annotated.
The example below is missing annotations for
![image](https://private-user-images.githubusercontent.com/53646914/263764634-5652d0a6-1704-4de6-a88a-6a8eec2c689b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4MDA0MTksIm5iZiI6MTcxOTgwMDExOSwicGF0aCI6Ii81MzY0NjkxNC8yNjM3NjQ2MzQtNTY1MmQwYTYtMTcwNC00ZGU2LWE4OGEtNmE4ZWVjMmM2ODliLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAxVDAyMTUxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJkY2ZlODlmYWE1MmMzNTY5NmY2NjhhZTliYjdlMTM0YmRlODNiOTZmMTgyOWQyNzRhYjdhOTA3YzRmZTgyNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Yz8nfLtpMzCNIFFP0hYIIOJQRQ4S8kDJnTTD1OgqIDc)
rows, columns
params; it would be helpful to have a warning such as "Unannotated parameters: rows, columns"Beta Was this translation helpful? Give feedback.
All reactions