Open p0o opened 1 year ago
@p0o A concept where there's a file with a list of custom tags that the parser can ignore seems like a good idea. Would you mind contributing on this?
@mnaumanali94 I agree. Contribution on this require changes to @stoplight/yaml
package right?
User story. As a developer, I can use spectral to lint Cloudformation YAML files (AWS IaC).
Is your feature request related to a problem? Cloudfomration uses custom tags like !Sub or !GetAtt which currently are not supported by default YAML parser and causes spectral to throw errors. It makes it unusable for this use case because enforcing it using CI causes correct Cloudformation templates to fail.
Sample error:
Describe the solution you'd like I like to be able to turn off the YAML parser error or be able to add YAML custom tags, through config file.
Additional context These are the current tags (intrinsic functions) AFAIK