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

Request for suppression tag for: cannot instantiate non-constructor #2862

Open
JohannRosenberg opened this issue Mar 25, 2018 · 2 comments
Open
Assignees
Labels

Comments

@JohannRosenberg
Copy link

Please add a new suppression tag for the following warning:

cannot instantiate non-constructor
This is needed when using third party libraries like Node.js where the "require" function is used and then you need to create an object using the "new" keyword from a "require" object. It isn't possible to add the @construct because this is third party code.

My app generates a lot of these warnings and currently there is no workaround.

@MatrixFrog
Copy link
Contributor

This might be a case where you just want to --hide_warnings_for all code that you don't control.

@JohannRosenberg
Copy link
Author

That flag hides warning for an entire file. That would be bad since I do care about all of the other warnings. I really need a tag for "cannot instantiate non-constructor".

@MatrixFrog MatrixFrog self-assigned this Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants