Skip to content

Enforce YAML Field Ordering - #4208

Merged
nasbench merged 2 commits into
developfrom
update-order
Aug 18, 2026
Merged

Enforce YAML Field Ordering #4208
nasbench merged 2 commits 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
@nasbench
nasbench marked this pull request as ready for review August 17, 2026 16:43
@nasbench
nasbench merged commit b4886ff into develop Aug 18, 2026
6 checks passed
@nasbench
nasbench deleted the update-order branch August 18, 2026 17:31
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.

2 participants