From e661165ead15a142f918867c3715f365e3d9b0a9 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 | 7 +++++++ 3 files changed, 22 insertions(+) create mode 100644 .editorconfig-checker.json diff --git a/.editorconfig b/.editorconfig index 0f4e36dcdc..a4baa4b4c8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,3 +13,11 @@ trim_trailing_whitespace = true [.git/COMMIT*] max_line_length = 72 + +[{osdep/dirent-win.h,TOOLS/osxbundle/mpv.app/Contents/PkgInfo}] +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 0000000000..1cedd44ffe --- /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 3aece2f4d7..06515adcab 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -39,3 +39,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: chartboost/ruff-action@v1 + + editorconfig-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: editorconfig-checker/action-editorconfig-checker@main + - run: editorconfig-checker -config .editorconfig-checker.json