From 3afaf57e0ff8f4e201ff0942adf97c533f35c287 Mon Sep 17 00:00:00 2001 From: usagiga Date: Sun, 25 Feb 2024 21:24:52 +0900 Subject: [PATCH] feat: use latest editorconfig --- .editorconfig | 5 +++++ .editorconfig.d | 2 +- .github/workflows/editorconfig.yml | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/editorconfig.yml diff --git a/.editorconfig b/.editorconfig index 3cf61a6..8151c94 100644 --- a/.editorconfig +++ b/.editorconfig @@ -41,6 +41,11 @@ indent_style = tab [*.cs] # Default +[*.{c,cpp,h,hpp}] +# To configure their rules, use clang-format +indent_style = unset +indent_size = unset + [*.{js,jsx,ts,tsx,css,scss,vue}] # To configure their rules, use ESLint / Prettier insert_final_newline = unset diff --git a/.editorconfig.d b/.editorconfig.d index 81687b6..39ae9bd 160000 --- a/.editorconfig.d +++ b/.editorconfig.d @@ -1 +1 @@ -Subproject commit 81687b6f937ec63cfda4ecb51822b0f50a56c6bb +Subproject commit 39ae9bd71c73916107dc4649c103f29112206347 diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml new file mode 100644 index 0000000..5df4af2 --- /dev/null +++ b/.github/workflows/editorconfig.yml @@ -0,0 +1,20 @@ +# Generated by github.com/usagiga/editorconfig +# https://github.com/usagiga/editorconfig + +name: "editorconfig-checker" + +on: + push: + pull_request: + +jobs: + check-format: + name: "Run editorconfig-checker" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: editorconfig-checker/action-editorconfig-checker@main + + - name: "Run editorconfig-checker" + run: editorconfig-checker