镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Description

@silverwind

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.

Activity

  1. added
    toolsIssues and PRs related to the tools directory.
    on Dec 5, 2016
  2. Ethan-Arrowood commented on Dec 5, 2016

    @Ethan-Arrowood
    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?

  3. silverwind commented on Dec 5, 2016

    @silverwind
    ContributorAuthor

    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.

  4. refack commented on Aug 5, 2017

    @refack
    Contributor

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

  5. Trott commented on Oct 26, 2018

    @Trott
    Member

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    toolsIssues and PRs related to the tools directory.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions