Skip to content

unnecessary_underscores false-positive when variable is referenced in docs #61558

@FMorschel

Description

@FMorschel

I'm not sure why anyone would ever mention a variable that starts with an underscore in a doc comment, but I believe that @bwilkerson's #61431 (comment) should be considered with unnecessary_underscores:

I could not see any mention of it at #56595.

/// This [__] here.
void f(int __) {
}

I don't feel like this would make a huge impact on our users, but it would make the implementation of #61431 easier by being sure the lint already handles this correctly.

WDYT @kallentu @pq?

I volunteer to make this change if you all agree to it.

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-false-positiveIssues related to lint rules that report a problem when it isn't a problem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions