dart-lang / yaml_edit

A library for YAML manipulation with comment and whitespace preservation.
https://pub.dev/packages/yaml_edit
BSD 3-Clause "New" or "Revised" License
27 stars 16 forks source link

Better logging in random_test.dart, and less overall noise from warnings #81

Closed jonasfj closed 5 months ago

jonasfj commented 5 months ago

Noticed that we never set yamlWarningCallback when parsing YAML internally, this meant that the terminal would show warnings.

This is sad, because some of the internal stuff really only used loadYamlNode to determine if a string needed to be quoted, or if the edits were sane -- so warnings aren't actually intended for the end-user.

One could argue that we should avoid edits that produce warnings, but that seems to an orthogonal concern, this really just stops warnings produces internally from polluting stdout.