Skip to content

Lint rule to enforce unnecessary this #58658

@martin-braun

Description

@martin-braun

Describe the rule you'd like to see implemented
I'm absolutely against avoiding the unnecessary usage of this, in-fact I'm the type of guy who wants to enforce it. The reason is simple: readability. I think it is very useful to immediately see if a variable comes from the function/global or class scope without inspecting it. Same goes to local and global functions. I'd like to enforce the usage of this whenever it is possible

I would call the rule enforce_unnecessary_this.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packagelinter-lint-proposaltype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions