cirrus-cli icon indicating copy to clipboard operation
cirrus-cli copied to clipboard

Parser: emit warnings on non-existent YAML configuration keys

Open edigaryev opened this issue 3 years ago • 1 comments

To avoid things like https://github.com/cirruslabs/cirrus-ci-docs/issues/1043.

edigaryev avatar Nov 09 '22 16:11 edigaryev

Took a look at this, and it seems that some refactoring will be needed first to pack this change in a concise PR.

Namely, we have two places where a virtual *node.Node is emitted:

  • collectible fields
  • YAML anchors

We need to ensure a 1-to-1 mapping between *node.Node and yaml.Node somehow, otherwise used/unused node bookkeeping becomes very hard go grasp.

edigaryev avatar Nov 21 '22 12:11 edigaryev