-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
I'm not sure if this is already included, but I couldn't find it anywhere.
The dart underscore for private members makes it easy to tell that a construct is private just by looking at its name, but I noticed that sometimes it's misused. and variable names in functions are decaled with a leading underscore. I see no value of doing so since the variable scope is already confined to the function or statement it's declared in.
for instance
void foo() {
int _answer = 42;
}
I would like a lint rule to discourage this behavior.
Thank you
Metadata
Metadata
Assignees
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug