dart-lang / dart_style

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

[tall] Incorrect indentation with multiple annotations on a parameter #1461

Closed munificent closed 3 months ago

munificent commented 3 months ago

I'm migrating regression tests and the tall style produces:

greet(
  @Rest(valueHelp: 'who', help: 'Name(s) to greet.') List<String> who, {
  @Group.start(title: 'Output')
      @Option(help: 'How many !\'s to append.')
      int enthusiasm:
      0,
  @Flag(abbr: 'l', help: 'Put names on separate lines.') bool lineMode: false,
  @Option(name: 'greeting', help: 'Alternate word to greet with e.g. "Hi".')
      String salutation:
      'Hello',
}) {}

There are several things wrong here: