From a3d14d20ae430cb556cf297286cac407af030d2b Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 30 Aug 2025 21:54:16 -0400 Subject: [PATCH] fix(lint): remove LineEnding from .clang-format config --- .clang-format | 1 - .github/workflows/__call-common-lint.yml | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index d6da5d94..782d1575 100644 --- a/.clang-format +++ b/.clang-format @@ -69,7 +69,6 @@ IndentWrappedFunctionNames: true InsertBraces: true InsertNewlineAtEOF: true KeepEmptyLinesAtTheStartOfBlocks: false -LineEnding: LF MaxEmptyLinesToKeep: 1 NamespaceIndentation: All ObjCBinPackProtocolList: Never diff --git a/.github/workflows/__call-common-lint.yml b/.github/workflows/__call-common-lint.yml index 5d87c6c3..a75ec8b8 100644 --- a/.github/workflows/__call-common-lint.yml +++ b/.github/workflows/__call-common-lint.yml @@ -208,6 +208,12 @@ jobs: # shellcheck disable=SC2086 # do not quote to keep this as a single line echo found_files=${found_files} >> "${GITHUB_OUTPUT}" + - name: C++ - Update Clang format config + if: always() && steps.cpp_files.outputs.found_files + shell: bash + run: | + echo "LineEnding: LF" >> .clang-format + - name: C++ - Clang format (diff) id: clang_format_diff if: always() && steps.cpp_files.outputs.found_files