From 7ffb724ad8f999bca603692ead232cbc1727c424 Mon Sep 17 00:00:00 2001 From: amartingarcia Date: Tue, 13 Aug 2024 12:42:58 +0200 Subject: [PATCH 1/2] feat: Upload editorconfig --- .editorconfig | 23 +++++++++++++++++ charts/templates/configmap-init-scripts.yaml | 2 +- charts/templates/configmap.yaml | 2 +- charts/templates/secret.yaml | 2 +- charts/templates/service.yaml | 2 +- package.json | 26 ++++++++++---------- 6 files changed, 40 insertions(+), 17 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..6d8fe57 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,23 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.{tf,tfvars}] +indent_style = tab +indent_size = 2 +tab_width = 2 + +[*.py] +indent_style = space +indent_size = 4 + +[*.{yaml,json}] +indent_style = space +indent_size = 2 diff --git a/charts/templates/configmap-init-scripts.yaml b/charts/templates/configmap-init-scripts.yaml index 2225572..0f6b743 100644 --- a/charts/templates/configmap-init-scripts.yaml +++ b/charts/templates/configmap-init-scripts.yaml @@ -20,4 +20,4 @@ data: steampipe mod install {{ $value }} {{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/templates/configmap.yaml b/charts/templates/configmap.yaml index 8e50d70..e04d67d 100644 --- a/charts/templates/configmap.yaml +++ b/charts/templates/configmap.yaml @@ -12,4 +12,4 @@ data: {{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/templates/secret.yaml b/charts/templates/secret.yaml index 0c79505..58381d2 100644 --- a/charts/templates/secret.yaml +++ b/charts/templates/secret.yaml @@ -13,4 +13,4 @@ data: {{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/templates/service.yaml b/charts/templates/service.yaml index e25f768..abdf47e 100644 --- a/charts/templates/service.yaml +++ b/charts/templates/service.yaml @@ -40,4 +40,4 @@ spec: protocol: TCP selector: {{- include "steampipe.selectorLabels" . | nindent 4 }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/package.json b/package.json index 9498aaf..3088960 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { - "name": "helm-steampipe", - "version": "1.0.0", - "release": { - "branches": [ - "main" - ], - "repositoryUrl": "https://github.com/devops-ia/helm-steampipe.git", - "plugins": [ - "@semantic-release/release-notes-generator", - "@semantic-release/github" - ] - } -} + "name": "helm-steampipe", + "version": "1.0.0", + "release": { + "branches": [ + "main" + ], + "repositoryUrl": "https://github.com/devops-ia/helm-steampipe.git", + "plugins": [ + "@semantic-release/release-notes-generator", + "@semantic-release/github" + ] + } +} \ No newline at end of file From c146df5a8cf4de38d82c6849f98e87f9159f5c18 Mon Sep 17 00:00:00 2001 From: amartingarcia Date: Tue, 13 Aug 2024 12:51:49 +0200 Subject: [PATCH 2/2] feat: Upload editorconfig --- .editorconfig | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 6d8fe57..78064ce 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,13 +1,17 @@ # EditorConfig is awesome: https://EditorConfig.org +# Uses editorconfig to maintain consistent coding styles # top-most EditorConfig file root = true [*] -end_of_line = lf charset = utf-8 -trim_trailing_whitespace = true +end_of_line = lf +indent_size = 2 +indent_style = space insert_final_newline = true +max_line_length = 80 +trim_trailing_whitespace = true [*.{tf,tfvars}] indent_style = tab @@ -18,6 +22,10 @@ tab_width = 2 indent_style = space indent_size = 4 +[*.md] +max_line_length = 0 +trim_trailing_whitespace = false + [*.{yaml,json}] indent_style = space indent_size = 2