Skip to content

No Adjacent Strings in lists #57318

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
a14n opened this issue Apr 19, 2016 · 0 comments
Closed

No Adjacent Strings in lists #57318

a14n opened this issue Apr 19, 2016 · 0 comments
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. linter-lint-request type-enhancement A request for a change that isn't a bug

Comments

@a14n
Copy link
Contributor

a14n commented Apr 19, 2016

It can be easy to forget a comma in String list without error because it's still valid code. In String list we should use + operator to prevent this.

BAD

var list = <String>[
  'a'
  'b',
  'c',
];

GOOD

var list = <String>[
  'a' +
  'b',
  'c',
];
@a14n a14n changed the title No String continuation in lists No Adjacent Strings in lists Apr 19, 2016
@pq pq added type-enhancement A request for a change that isn't a bug linter-lint-request labels Apr 25, 2016
alexeieleusis referenced this issue in dart-archive/linter Nov 28, 2016
No adjacent strings in list. Fixes #225.
@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. linter-lint-request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

3 participants