From d62dc692fab22ac0f4b050ac972d5b83830242fe Mon Sep 17 00:00:00 2001 From: MH Hung Date: Tue, 9 Sep 2025 22:55:40 +0800 Subject: [PATCH] chore(linter): remove stray duplicate configs with trailing spaces - Remove '.clang-format ' and '.clang-tidy ' (trailing-space filenames) - Keep canonical .clang-format (LLVM) and .clang-tidy (Phase 1 rules) --- .clang-format | 16 ---------------- .clang-tidy | 26 -------------------------- 2 files changed, 42 deletions(-) delete mode 100644 .clang-format delete mode 100644 .clang-tidy diff --git a/.clang-format b/.clang-format deleted file mode 100644 index 68fb1b3..0000000 --- a/.clang-format +++ /dev/null @@ -1,16 +0,0 @@ -# 基於 Google 風格但較寬鬆,適合舊代碼 -BasedOnStyle: Google -IndentWidth: 4 -TabWidth: 4 -UseTab: Never -ColumnLimit: 100 -AccessModifierOffset: -2 -AlignConsecutiveAssignments: false -AlignConsecutiveDeclarations: false -AllowShortFunctionsOnASingleLine: Empty -AllowShortIfStatementsOnASingleLine: false -AllowShortLoopsOnASingleLine: false -BreakBeforeBraces: Attach -IndentCaseLabels: true -SpacesBeforeTrailingComments: 2 -Standard: Cpp03 # 針對舊代碼 \ No newline at end of file diff --git a/.clang-tidy b/.clang-tidy deleted file mode 100644 index cff2d44..0000000 --- a/.clang-tidy +++ /dev/null @@ -1,26 +0,0 @@ -# 階段一:只檢查最關鍵的錯誤,適合舊代碼 -Checks: '-*, - clang-analyzer-core.NullDereference, - clang-analyzer-core.DivideZero, - clang-analyzer-core.UndefinedBinaryOperatorResult, - bugprone-argument-comment, - bugprone-bool-pointer-implicit-conversion, - bugprone-dangling-handle, - bugprone-use-after-move, - readability-braces-around-statements, - readability-container-size-empty' - -# 不將警告視為錯誤(階段一) -WarningsAsErrors: '' - -# 包含所有標頭檔 -HeaderFilterRegex: '.*' - -# 分析設定 -AnalyzeTemporaryDtors: false -FormatStyle: none - -# 檢查參數 -CheckOptions: - - key: readability-braces-around-statements.ShortStatementLines - value: '2' \ No newline at end of file