constellation/hack
Markus Rudy 32d3b4e87c
ci: introduce keep-sorted (#2836)
Long lists of items in source code or config can be hard to work with as
a human, most problematic being out-of-order entries in an otherwise
ordered list. This is where keep-sorted comes to the rescue: we can
leave two little comments on every listing we care about, and
keep-sorted ensures that the listing stays in order.

This commit also applied keep-sorted to the CODEOWNERS file, hopefully
demonstrating its usefulness to some extent. I'd expect more uses for
keep-sorted to be discovered organically over time.

keep-sorted is super fast, so it should not be a problem to add it to
the //:tidy target, even if we scan all files in the code base. On my
MacBook:

$ time (find . -not -path "./.git/*" -type f | sort | xargs "${keep_sorted}" --mode fix)

real	0m0.249s
user	0m0.124s
sys	0m0.129s
2024-01-30 14:39:49 +01:00
..
bazel-deps-mirror goleak: ignore rules_go SIGTERM handler 2024-01-22 13:11:58 +01:00
cli-k8s-compatibility Fix various small things throughout the codebase (#2800) 2024-01-09 19:37:56 +01:00
clidocgen terraform: add Terraform module for Azure (#2566) 2023-11-13 18:46:20 +01:00
fetch-broken-e2e ci: format shellscripts 2022-11-11 15:53:57 +01:00
gocoverage deps: remove go.mod files from submodules (#2769) 2024-01-08 13:19:38 +01:00
image-fetch terraform: Azure Marketplace image support (#2651) 2023-12-08 14:40:31 +01:00
logcollector ci: separate logs and metrics indices (#2544) 2023-10-31 12:09:27 +01:00
oci-pin bazel: allow custom container_prefix (#1693) 2023-04-27 11:52:02 +02:00
qemu-metadata-api bazel: provide runtime dependencies of libvirt where needed 2023-12-01 09:35:33 +01:00
remove-tf-providers hack: add script to remove terraform providers 2022-11-29 18:47:30 +01:00
tools ci: introduce keep-sorted (#2836) 2024-01-30 14:39:49 +01:00
versioninfogen docs: add Kubernetes version support list (#2661) 2023-12-05 15:13:25 +01:00