imbal / safeyaml

SafeYAML: A linter for YAML-favoured JSON (& autoformatting too!)
240 stars 11 forks source link

Proposal: --fix-unquoted doing line at a time repair #11

Open tef opened 6 years ago

tef commented 6 years ago

Unquoted handling:

For Inside {}'s, or []'s only identifier like keys or values. There isn't a good way to handle unquoted values inside of these, because of examples like 'a: 1, b: 2'

For maps, we have to pick and choose between nesting and error handling.

For indented lists we can do the same, handling a value in the same way as a map,

Note: Because of negative numbers, nesting lists complicate nesting

However, a - name: foo can work.