NuxiNL / cloudlibc

CloudABI's standard C library
BSD 2-Clause "Simplified" License
295 stars 17 forks source link

CloudABI YAML doesn't play well with document delimiters / yamllint #19

Closed mcandre closed 5 years ago

mcandre commented 5 years ago

YAML files are supposed to be able to begin with ---, and yamllint recommends this rule to ensure that many YAML files behave well when concatenated together. However, CloudABI's YAML parsing setup requires its YAML files to begin like %TAG ! tag:nuxi.nl,2015:cloudabi/, and then a document delimiter and capability spec document can follow.

Would it be possible to enhance the capability spec so that --- can lead the very beginning of .YML files, matching how other applications process YAML files?

mcandre commented 5 years ago

I learned something today: %TAG seems to define a global YAML thing, separate from the document-by-document bits. And in fact, yamllint has no quarrel with this!