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

Feature request: warn on implicit any #149

Open
AntonBergaker opened this issue May 14, 2021 · 0 comments
Open

Feature request: warn on implicit any #149

AntonBergaker opened this issue May 14, 2021 · 0 comments

Comments

@AntonBergaker
Copy link
Contributor

Making an issue of it because I imagine it's a large request.
I'm in the process of converting a fairly large project into having type annotations. It's not always clear what parts have been annotated yet and where issues can crop up. It's also easy to miss some necessary typings in create events.

Example:

///Create event:
var _foo = 0;
myFoo = _foo; ///want_warn implicit any
myBar = scr_custom_script(); ///want_warn implicit any
///Step event:
var _bar = myBar; ///want_warn implicit_any

Since this is pretty disruptive, I imagine this would be a setting that's disabled by default.

Now this doesn't do much to warn when actually using the implicit any in code.
I'm not sure if it should warn on if (myBar == "foo") or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants