From e7a81411137075919bcd4064fc63107faa9c7b51 Mon Sep 17 00:00:00 2001 From: Anjandev Momi Date: Wed, 12 Oct 2022 13:46:38 -0700 Subject: [PATCH] CI: check if most text files have final_newline and conform to editorconfig (MR 3530) fixes #592 --- .editorconfig | 4 ++-- .gitlab-ci.yml | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 85d4df20c..81787c6dd 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,8 +7,8 @@ # Top-most EditorConfig file. root = true -[**/APKBUILD] +[{**.{md,ini,sh,rules,nft},**/APKBUILD}] indent_style = tab end_of_line = lf -insert_final_newline = true trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ece11967..ce3e34b5a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -61,6 +61,15 @@ shellcheck: script: - .ci/shellcheck.sh +editor-config: + stage: lint + <<: *only-default + image: alpine:edge + before_script: + - apk -q add editorconfig-checker + script: + - ec + # aports checks (generic) aports-static: stage: lint