Skip to content

Linter complaints about double underline #57233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zoechi opened this issue Oct 6, 2015 · 1 comment
Closed

Linter complaints about double underline #57233

zoechi opened this issue Oct 6, 2015 · 1 comment
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@zoechi
Copy link
Contributor

zoechi commented Oct 6, 2015

1st case:

I have a public getter

List<String> get demos => __demos;

a private setter

set _demos(List<String> demos) {
  __demos = demos;
  notifyPath('demos', demos); // Polymer requires it
}
and a private backing field `__demos`

> [lint] Name non-constant identifiers using lowerCamelCase.

**2nd case**
```dart
@reflectable
void onMouseClick(_, __) { // signature required by Polymer
   doSomething();
}

[lint] Name non-constant identifiers using lowerCamelCase.

Quite annoying
See also #57201

@pq pq added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Nov 5, 2015
@pq
Copy link
Member

pq commented Nov 6, 2015

Fixed w/ c5723d1.

@pq pq closed this as completed Nov 6, 2015
@devoncarew devoncarew added devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. labels Nov 18, 2024
@devoncarew devoncarew transferred this issue from dart-archive/linter Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants