Skip to content

Lint to split comments when > line lengthΒ #57152

@pq

Description

@pq

Migrated from dartbug.com/22003:

I ran dartformat like this:

dartformat -l 58 -w *.dart

The input file included these two lines:

  // _cache is library-private, thanks to the _ in front of its name.
  static final Map<String, Logger> _cache = <String, Logger>{};

The output for those lines was this:

  // _cache is library-private, thanks to the _ in front of its name.
  static final Map<String, Logger> _cache =
      <String, Logger>{};

I expected something like this:

  // _cache is library-private, thanks to the _ in front
  // of its name.
  static final Map<String, Logger> _cache =
      <String, Logger>{};

Metadata

Metadata

Assignees

No one assigned

    Labels

    devexp-linterIssues with the analyzer's support for the linter packagelegacy-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