From c25b8dff267301756276163c94c576a942ad9d79 Mon Sep 17 00:00:00 2001 From: QuantumGhost Date: Mon, 28 Apr 2025 22:21:46 +0800 Subject: [PATCH] ci: update style check introduce editorconfig check, add its configuration. --- .editorconfig-checker.json | 18 ++++++++++++++++++ .github/workflows/style.yml | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 .editorconfig-checker.json diff --git a/.editorconfig-checker.json b/.editorconfig-checker.json new file mode 100644 index 0000000000..7072dfea81 --- /dev/null +++ b/.editorconfig-checker.json @@ -0,0 +1,18 @@ +{ + "Verbose": false, + "Debug": false, + "IgnoreDefaults": false, + "SpacesAfterTabs": false, + "NoColor": false, + "Exclude": [], + "AllowedContentTypes": [], + "PassedFiles": [], + "Disable": { + "EndOfLine": false, + "Indentation": false, + "IndentSize": true, + "InsertFinalNewline": false, + "TrimTrailingWhitespace": false, + "MaxLineLength": false + } +} diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 98e5fd5150..5a56ed9ec2 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -145,6 +145,7 @@ jobs: **.yml **Dockerfile dev/** + **.* - name: Super-linter uses: super-linter/super-linter/slim@v7 @@ -163,3 +164,6 @@ jobs: VALIDATE_DOCKERFILE_HADOLINT: true VALIDATE_XML: true VALIDATE_YAML: true + # EditorConfig validation + VALIDATE_EDITORCONFIG: true + EDITORCONFIG_FILE_NAME: .editorconfig-checker.json