Skip to content

linter rule avoid_redundant_argument_values and annotation coverage #61456

@RohitSaily

Description

@RohitSaily

currently this linter rule does not flag the usage of an annotation that redundantly specifies a default value. for example

@Example(0) /*<= no lint for redundant argument*/ void f()
{
}
extension type const Example._(int i)
{  const Example([this.i=0]);
}

from this doc it sounds like it would be intended to cover such a case since it is for argument values in general

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-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-negativeIssues related to lint rules that fail to report a problem.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions