Skip to content

Adjacent strings expression in lists should be error, warning, or otherwise noticeable #14139

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


I have often run into bugs of the following form:

["a", "b", "c", "d" "e", "f"] // Can you notice a missing comma?

Without a close inspection, you easily conclude that the list declaration is correct.

A proposal:
Make it noticeable in the editor (color, etc.) when adjacent strings expression is used.
Considering making it an error or warning to use adjacent strings expression in list literals (and argument lists?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work ondevexp-warningIssues with the analyzer's Warning codeslegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions