From ea0c782e248467388c95c1d485ebd654f71fed1f 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 | 13 +++++++++++-- .editorconfig.d | 2 +- .github/workflows/editorconfig.yml | 20 ++++++++++++++++++++ 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/editorconfig.yml diff --git a/.editorconfig b/.editorconfig index 3cf61a6..d3c92ec 100644 --- a/.editorconfig +++ b/.editorconfig @@ -20,10 +20,10 @@ indent_style = tab [Makefile] indent_style = tab -[*.{json,yml,yaml}] +[*.{json,yml,yaml,xml,iml}] indent_size = 2 -[*.{html,htm}] +[*.{html,htm,xhtml,xhtm}] indent_size = 2 [*.{json.tftpl, tf, hcl, tfvars, tfstate, tfstate.backup}] @@ -41,9 +41,18 @@ 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 trim_trailing_whitespace = unset indent_style = unset indent_size = unset + +[.gitmodules] +indent_style = unset +indent_size = unset diff --git a/.editorconfig.d b/.editorconfig.d index 81687b6..3ddb81d 160000 --- a/.editorconfig.d +++ b/.editorconfig.d @@ -1 +1 @@ -Subproject commit 81687b6f937ec63cfda4ecb51822b0f50a56c6bb +Subproject commit 3ddb81d1dba2b32f627c40019e03756884b2da14 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