Describe the enhancement requested
During reviews, maintainers often ask contributors to keep unordered lists alphabetically sorted (e.g. SOURCES in CMakeLists.txt, dependency lists, CMakePresets.json, meson.build, dev/tasks/tasks.yml).
Since these comments are repetitive and the ordering is deterministic, would it make sense to add a lint check to the existing dev/lint workflow for selected cases?
The initial implementation could be conservative and only check simple literal lists, skipping variables or complex expressions to avoid false positives.
Component(s)
Developer Tools, Format
Describe the enhancement requested
During reviews, maintainers often ask contributors to keep unordered lists alphabetically sorted (e.g.
SOURCESinCMakeLists.txt, dependency lists,CMakePresets.json,meson.build,dev/tasks/tasks.yml).Since these comments are repetitive and the ordering is deterministic, would it make sense to add a lint check to the existing
dev/lintworkflow for selected cases?The initial implementation could be conservative and only check simple literal lists, skipping variables or complex expressions to avoid false positives.
Component(s)
Developer Tools, Format