From 095976f85fef0cff81892f2b689bb68f55035097 Mon Sep 17 00:00:00 2001 From: der richter Date: Sun, 20 Oct 2024 14:00:47 +0200 Subject: [PATCH] github/workflows: add editorconfig linting --- .editorconfig | 8 ++++++++ .editorconfig-checker.json | 7 +++++++ .github/workflows/lint.yml | 8 ++++++++ 3 files changed, 23 insertions(+) create mode 100644 .editorconfig-checker.json diff --git a/.editorconfig b/.editorconfig index 0f4e36dcdc70f..423abca3edc02 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,3 +13,11 @@ trim_trailing_whitespace = true [.git/COMMIT*] max_line_length = 72 + +[osdep/dirent-win.h] +charset = unset +insert_final_newline = unset +indent_style = unset +indent_size = unset +max_line_length = unset +trim_trailing_whitespace = unset diff --git a/.editorconfig-checker.json b/.editorconfig-checker.json new file mode 100644 index 0000000000000..1cedd44ffef9c --- /dev/null +++ b/.editorconfig-checker.json @@ -0,0 +1,7 @@ +{ + "Format": "github-actions", + "Disable": { + "IndentSize": true, + "MaxLineLength": true + } +} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3aece2f4d71b1..305b360f9bafa 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -39,3 +39,11 @@ jobs: steps: - uses: actions/checkout@v4 - uses: chartboost/ruff-action@v1 + + editorconfig-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v5 + - run: go install github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@latest + - uses: actions/checkout@v4 + - run: editorconfig-checker -config .editorconfig-checker.json