constellation/bazel/ci
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
..
actionlint.sh.in bazel: improve script template resilience 2023-03-29 12:51:40 -04:00
bazel_container.sh.in bazel: update bazel container version on //:tidy 2023-07-25 15:41:55 +02:00
buf.sh.in bazel: improve script template resilience 2023-03-29 12:51:40 -04:00
BUILD.bazel ci: introduce keep-sorted (#2836) 2024-01-30 14:39:49 +01:00
cli_docgen.sh.in bazel: add cli doc generation to //:generate 2023-03-30 12:01:13 -04:00
go_generate.sh.in bazel: add yq to PATH in go generate 2023-07-20 15:47:12 +02:00
go_tidy.sh.in bazel: better ci script naming 2023-03-30 12:01:13 -04:00
gocoverage_diff.sh.in ci: comment Go coverage report on PR 2023-08-28 15:44:07 +02:00
golangci_lint.sh.in ci: comment Go coverage report on PR 2023-08-28 15:44:07 +02:00
golicenses.sh.in deps: remove go.mod files from submodules (#2769) 2024-01-08 13:19:38 +01:00
govulncheck.sh.in bazel: use -C flag in govulncheck ci 2023-08-15 16:29:56 +02:00
keep_sorted.sh.in ci: introduce keep-sorted (#2836) 2024-01-30 14:39:49 +01:00
license_header.sh.in bazel: better ci script naming 2023-03-30 12:01:13 -04:00
proto_targets_check.sh.in use toolchains from nixpkgs (with fallback) 2023-09-27 17:58:19 +02:00
proto_targets.bzl versions: consolidate various types of Components 2023-12-11 14:26:54 +01:00
shellcheck.sh.in bazel: remove stale bash completion file 2024-01-08 10:44:38 +01:00
shfmt.sh.in terraform-provider: support importing Constellation clusters (#2702) 2023-12-12 16:00:03 +01:00
terraform_docgen.sh.in terraform-provider: add image datasource (#2642) 2023-11-27 09:00:08 +01:00
terraform.sh.in terraform-provider: support importing Constellation clusters (#2702) 2023-12-12 16:00:03 +01:00
tfsec.sh.in bazel: improve script template resilience 2023-03-29 12:51:40 -04:00
unused_gh_actions.sh.in ci: remove artifact encryption for public artifacts (#2776) 2023-12-29 11:02:37 +01:00
version_info_gen.sh.in docs: add Kubernetes version support list (#2661) 2023-12-05 15:13:25 +01:00