ClangFormat // Update configuration for SwiftUI.
This commit is contained in:
parent
6089f53d1d
commit
a0f0a71766
|
@ -21,7 +21,7 @@
|
|||
"AmbiguousTrailingClosureOverload" : true,
|
||||
"BeginDocumentationCommentWithOneLineSummary" : false,
|
||||
"DoNotUseSemicolons" : true,
|
||||
"DontRepeatTypeInStaticProperties" : true,
|
||||
"DontRepeatTypeInStaticProperties" : false,
|
||||
"FileScopedDeclarationPrivacy" : true,
|
||||
"FullyIndirectEnum" : true,
|
||||
"GroupNumericLiterals" : true,
|
||||
|
@ -39,7 +39,7 @@
|
|||
"NoVoidReturnOnFunctionSignature" : true,
|
||||
"OneCasePerLine" : true,
|
||||
"OneVariableDeclarationPerLine" : true,
|
||||
"OnlyOneTrailingClosureArgument" : true,
|
||||
"OnlyOneTrailingClosureArgument" : false,
|
||||
"OrderedImports" : true,
|
||||
"ReturnVoidInsteadOfEmptyTuple" : true,
|
||||
"UseEarlyExits" : false,
|
||||
|
@ -47,7 +47,7 @@
|
|||
"UseShorthandTypeNames" : true,
|
||||
"UseSingleLinePropertyGetter" : true,
|
||||
"UseSynthesizedInitializer" : true,
|
||||
"UseTripleSlashForDocumentationComments" : true,
|
||||
"UseTripleSlashForDocumentationComments" : false,
|
||||
"UseWhereClausesInForLoops" : false,
|
||||
"ValidateDocumentationComments" : false
|
||||
},
|
||||
|
|
|
@ -86,6 +86,9 @@
|
|||
- `"lineLength" : 120,`
|
||||
- `"NoBlockComments" : false,`
|
||||
- `"tabWidth" : 4,`
|
||||
- `"OnlyOneTrailingClosureArgument" : false,` // SwiftUI 相容
|
||||
- `"UseTripleSlashForDocumentationComments" : false,`
|
||||
- `"DontRepeatTypeInStaticProperties" : false,`
|
||||
- (Obj)C(++) 系語言:使用 clang-format 命令、且採 Microsoft 行文規範。該規範以四個西文半形空格為行縮進單位。
|
||||
|
||||
## 特殊勸告
|
||||
|
|
Loading…
Reference in New Issue