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)
This commit is contained in:
@@ -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 # 針對舊代碼
|
|
26
.clang-tidy
26
.clang-tidy
@@ -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'
|
|
Reference in New Issue
Block a user