Skip to content

Enforce YAML Field Ordering - #4208

Draft
nasbench wants to merge 1 commit into
developfrom
update-order
Draft

Enforce YAML Field Ordering #4208
nasbench wants to merge 1 commit into
developfrom
update-order

Conversation

@nasbench

@nasbench nasbench commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

The change adds a configurable .yamlfieldorder definition and a new enforce_yaml_field_order.py utility, integrates field-order enforcement into pre-commit and YAML validation CI, and updates the workflow triggers so validation changes are tested automatically.

Existing detection YAMLs are also reordered to conform to the new standard without changing their underlying detection content.

This improves consistency across security content, reduces formatting drift, and makes YAML files easier to review and maintain.

Some vibe coding was used for the writing of the script. But it was inspired by my previous YAML script which was human written for the most part. So this is kinda of okay by my standards

See TR-4513

@nasbench nasbench added this to the v6.5.0 milestone Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant