Bob Nystrom

Results 973 comments of Bob Nystrom

The `--fix` support in dart format is pretty old, which mostly explains why its names don't agree with the linter. Instead of updating the names in `--fix`, I think the...

I believe @keertip is working on this, or at least was intending to at some point. I'm not sure if she has any tracking issue for it.

I'm not sure of the exact status, but I *believe* that `dart fix` has lightweight mode now. We don't have any intention of putting more effort into `dart format --fix`....

Thanks for filing this. The intent has always been that `DartFormatter` objects are lightweight and short-lived, but it does seem confusing and not useful that it persists the inferred line...

This is working more or less as intended, but I agree the results don't look great. The formatter has heuristics around when to use "block-like" indentation for function expressions that...

> I captured above screenshot as text in case it is useful: It is, thank you!

I ran the example through the [forthcoming](https://github.com/dart-lang/dart_style/issues/1403) [tall style](https://github.com/dart-lang/dart_style/issues/1253) and it produces: ```dart file .readAsBytes() .then( (bytes) => ApiClient.instance.files.upload( ownershipType: ownershipType, file: MultipartFile.fromBytes(bytes, filename: filename), ), ) .then((storageFile) { _value...

Yeah, I'll get on it today.

Phew. This is a thing we *could* do. But given how incredibly heated discussions of line length get, I worry that if we do this, *everyone* will start configuring the...

CC @scheglov and @bwilkerson. Just to let you know, I'm implementing this now, which means that the formatter will be using all of the corners of the Analyzer AST API...