Skip to content

Add reusable YAML document classification foundation - #394

Open
Chanel (chanel-y) wants to merge 2 commits into
mainfrom
iac-p0/yaml-document-foundation
Open

Add reusable YAML document classification foundation#394
Chanel (chanel-y) wants to merge 2 commits into
mainfrom
iac-p0/yaml-document-foundation

Conversation

@chanel-y

Copy link
Copy Markdown

Introduce YamlDocumentClassification providing a shared YamlSyntaxDocument guard (file extension yml/yaml only, excluding JSON) and a isSupportedYamlDocument predicate that classifies documents into ado-pipeline, kubernetes-helm, compose, openapi, or cloudformation kinds while excluding ARM-schema-marked templates regardless of extension. Terraform, HCL, and Bicep are excluded structurally since they are not represented as YamlNode in this extractor.

Introduce YamlDocumentClassification providing a shared YamlSyntaxDocument
guard (file extension yml/yaml only, excluding JSON) and a
isSupportedYamlDocument predicate that classifies documents into
ado-pipeline, kubernetes-helm, compose, openapi, or cloudformation kinds
while excluding ARM-schema-marked templates regardless of extension.
Terraform, HCL, and Bicep are excluded structurally since they are not
represented as YamlNode in this extractor.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8eab11c3-3153-4036-9847-28a2f615835f
@chanel-y
Chanel (chanel-y) force-pushed the iac-p0/yaml-document-foundation branch from be8b26e to ce67fce Compare August 26, 2026 17:03
The yaml-classification AST test shipped without an AST.expected file,
so `codeql test run` failed. Add the generated expectations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant