Jonas Finnemann Jensen
Jonas Finnemann Jensen
Having `dartdev` give the formatter a way to invoke [`ensurePubspecResolved`](https://github.com/dart-lang/pub/blob/85aeff4c2f28ce55ac5cbf7be251c009e3829e30/lib/pub.dart#L28-L46) (passing a callback) might be okay. Then the formatter can invoke `ensurePubspecResolved`: * before it reads `package_config.json` for language version,...
We have an `assertUpToDate` which has some rather subtle logic for testing if `package_config.json` is reflection of `pubspec.lock`, and whether `pubspec.lock` is a resolution to `pubspec.yaml`. https://github.com/dart-lang/pub/blob/a73598b5f36cf32c2d498391c6b9e7b015c02a4f/lib/src/entrypoint.dart#L564 > Doing that...
There is a possible complication around flutter. If you use `dart format` with flutter, or `dart analyze` with flutter, then the `dart pub get` we run won't necessarily do all...
> remove `foo`, add/update `bar`: results in a flow-style map: `analyzer: {foo: false}`. This can be worked around by using `wrapAsYamlNode` and specify the style. --------------------------------------- I have no problems...
That said, I can see it being useful to have a method to update a key, but I'm not sure how that isn't just removing an existing key and inserting...
We do strive to pana up-to-date, usually it takes us a couple of days. But we have reduced summer staffing at the moment (and I guess this release missed deployment...
Many small PRs are strongly encouraged. We probably won't hit 100% since some of the code is designed to throw errors when an internal error happens. And there **should** be...
Maybe, there needs to be some logic around depth... I suppose it would be nice with an argument that always goes into flow-mode for a depth higher than some threshold,...
@seifibrahim32, please do give it a try. I think one of the important aspects is to have proper tests. Such that we know that the formatting works, and behaves reasonably....
Any other ways we can solve this? Do the same thing happen if I try to insert a map or list in block mode? Is it possible to allow to...