From 227fb7b0dbdafb9f77cd0987ba835d720cd0b00d Mon Sep 17 00:00:00 2001 From: yubiuser Date: Mon, 11 Aug 2025 22:35:38 +0200 Subject: [PATCH] Add editorconfig Signed-off-by: yubiuser --- .editorconfig | 20 ++++++++++++++++++++ .github/workflows/editorconfig.yml | 18 ++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .editorconfig create mode 100644 .github/workflows/editorconfig.yml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..714ed21 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,20 @@ +# EditorConfig is awesome: https://editorconfig.org/ + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = tab +tab_width = 4 +charset = utf-8 +trim_trailing_whitespace = true + +[*.yml] +tab_width = 2 + +[*.md] +tab_width = 2 diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml new file mode 100644 index 0000000..03b4400 --- /dev/null +++ b/.github/workflows/editorconfig.yml @@ -0,0 +1,18 @@ +name: Editorconfig-Checker +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + +jobs: + editorconfig-checker: + if: github.event.pull_request.draft == false + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Get editorconfig-checker + uses: editorconfig-checker/action-editorconfig-checker@main # tag v1.0.0 is really out of date + + - name: Run editorconfig-checker + run: editorconfig-checker