From c465902d4411b1e0b78407b2b13aecb734bbad28 Mon Sep 17 00:00:00 2001 From: devantler Date: Wed, 24 Jun 2026 18:19:05 +0200 Subject: [PATCH] chore: add .editorconfig formatting baseline (template-suite parity) Adds a stack-agnostic .editorconfig mirroring the common base of the go-template and dotnet-template siblings, closing a template-suite parity gap (go-template #104 theme 3). platform-template is YAML/Markdown/JSON only, so a 2-space space-indent default fits every file. Also brings the two sample manifests that lacked a final newline into conformance with the new insert_final_newline rule. --- .editorconfig | 13 +++++++++++++ .../best-practices/add-ns-quota/add-ns-quota.yaml | 2 +- .../spread-pods-across-topology.yaml | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..739250b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# EditorConfig — https://editorconfig.org +# Shared formatting baseline for the platform scaffold. Mirrors the common base of the +# go-template / dotnet-template siblings; platform-template is YAML/Markdown/JSON only, +# so a 2-space, space-indent default fits every file. +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 diff --git a/k8s/bases/infrastructure/cluster-policies/samples/best-practices/add-ns-quota/add-ns-quota.yaml b/k8s/bases/infrastructure/cluster-policies/samples/best-practices/add-ns-quota/add-ns-quota.yaml index 03572eb..dc3026a 100644 --- a/k8s/bases/infrastructure/cluster-policies/samples/best-practices/add-ns-quota/add-ns-quota.yaml +++ b/k8s/bases/infrastructure/cluster-policies/samples/best-practices/add-ns-quota/add-ns-quota.yaml @@ -55,4 +55,4 @@ spec: defaultRequest: cpu: 200m memory: 256Mi - type: Container \ No newline at end of file + type: Container diff --git a/k8s/bases/infrastructure/cluster-policies/samples/other/spread-pods-across-topology/spread-pods-across-topology.yaml b/k8s/bases/infrastructure/cluster-policies/samples/other/spread-pods-across-topology/spread-pods-across-topology.yaml index 4ae549e..6209c47 100644 --- a/k8s/bases/infrastructure/cluster-policies/samples/other/spread-pods-across-topology/spread-pods-across-topology.yaml +++ b/k8s/bases/infrastructure/cluster-policies/samples/other/spread-pods-across-topology/spread-pods-across-topology.yaml @@ -37,4 +37,4 @@ spec: whenUnsatisfiable: DoNotSchedule labelSelector: matchLabels: - distributed: required \ No newline at end of file + distributed: required