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

tools: evaluate removing args exception from no-unused-vars lint rule #10129

Closed
silverwind opened this issue Dec 5, 2016 · 4 comments
Closed
Labels
tools Issues and PRs related to the tools directory.

Comments

@silverwind
Copy link
Contributor

To avoid issues like #10041, I propose removing the eslint option that exempts unused function arguments from the no-unused-vars rule. There are currently 426 violations in the codebase, with around 60 of them in lib.

If we want to retain certain arguments for clarity, we can just wrap them in comment tags.

@silverwind silverwind added the tools Issues and PRs related to the tools directory. label Dec 5, 2016
@Ethan-Arrowood
Copy link
Contributor

I'd be happy to go through and make the changes to get rid of any unused arguments if we exempt them from the no-unused-vars rule.
Furthermore, why do we even allow unused variables? Isn't that just wasting size and run time resources?

@silverwind
Copy link
Contributor Author

I think the only reason we still have these is because a big change like that can make it harder to git blame, but I'd say code quality trumps that.

@refack
Copy link
Contributor

refack commented Aug 5, 2017

For context, having "unused" formal argument is a little bit more performant if it matches the signature of the call - #14137

@Trott
Copy link
Member

Trott commented Oct 26, 2018

Closing due to inactivity. Feel free to re-open if that's The Wrong Thing to do.

@Trott Trott closed this as completed Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Issues and PRs related to the tools directory.
Projects
None yet
Development

No branches or pull requests

4 participants