dart-lang / dart_style

An opinionated formatter/linter for Dart code
https://pub.dev/packages/dart_style
BSD 3-Clause "New" or "Revised" License
649 stars 120 forks source link

Support determining the page_width given a list / lists of multiple included files #1591

Closed srawlins closed 2 weeks ago

srawlins commented 4 weeks ago

For https://github.com/dart-lang/sdk/issues/47256, the analyzer recently supports merging multiple include files, in an analysis options file. So before we only supported:

include: some_file.yaml

and we now additionally support:

include:
  - one_file.yaml
  - ../../another.yaml
  - package:foo/thrid.yaml

I believe this package has it's own YAML merging logic to read the single (chain of) include files.

srawlins commented 4 weeks ago

Notes for whoever implements this in dart_style:

srawlins commented 4 weeks ago

@munificent would you mind if I took a whack at this?

munificent commented 4 weeks ago

I was honestly surprised when I first implemented this that only a single include was supported.

@munificent would you mind if I took a whack at this?

Sure, not at all! Thanks!