Every comment is reduced to its first sentence plus Parameter, Returns and Throws tags. Comment lines: 8973 to 3193. Apple's swift-format (from the Xcode toolchain) applied to every Swift file with a committed .swift-format: four-space indentation, 100 columns, imports ordered. One test parsed the page table out of Entrypoint.swift line by line and assumed each entry started a line; it now reads the table with a regular expression so formatting cannot break it. Comments and formatting only. 694 tests pass. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
81 lines
2.7 KiB
Plaintext
81 lines
2.7 KiB
Plaintext
{
|
|
"fileScopedDeclarationPrivacy": {
|
|
"accessLevel": "private"
|
|
},
|
|
"indentBlankLines": false,
|
|
"indentConditionalCompilationBlocks": true,
|
|
"indentSwitchCaseLabels": false,
|
|
"indentation": {
|
|
"spaces": 4
|
|
},
|
|
"lineBreakAroundMultilineExpressionChainComponents": false,
|
|
"lineBreakBeforeControlFlowKeywords": false,
|
|
"lineBreakBeforeEachArgument": false,
|
|
"lineBreakBeforeEachGenericRequirement": false,
|
|
"lineBreakBetweenDeclarationAttributes": false,
|
|
"lineLength": 100,
|
|
"maximumBlankLines": 1,
|
|
"multiElementCollectionTrailingCommas": true,
|
|
"multilineTrailingCommaBehavior": "keptAsWritten",
|
|
"noAssignmentInExpressions": {
|
|
"allowedFunctions": [
|
|
"XCTAssertNoThrow"
|
|
]
|
|
},
|
|
"orderedImports": {
|
|
"includeConditionalImports": false,
|
|
"shouldGroupImports": true
|
|
},
|
|
"prioritizeKeepingFunctionOutputTogether": false,
|
|
"reflowMultilineStringLiterals": "never",
|
|
"respectsExistingLineBreaks": true,
|
|
"rules": {
|
|
"AllPublicDeclarationsHaveDocumentation": false,
|
|
"AlwaysUseLiteralForEmptyCollectionInit": false,
|
|
"AlwaysUseLowerCamelCase": true,
|
|
"AmbiguousTrailingClosureOverload": true,
|
|
"AvoidRetroactiveConformances": true,
|
|
"BeginDocumentationCommentWithOneLineSummary": false,
|
|
"DoNotUseSemicolons": true,
|
|
"DontRepeatTypeInStaticProperties": true,
|
|
"FileScopedDeclarationPrivacy": true,
|
|
"FullyIndirectEnum": true,
|
|
"GroupNumericLiterals": true,
|
|
"IdentifiersMustBeASCII": true,
|
|
"NeverForceUnwrap": false,
|
|
"NeverUseForceTry": false,
|
|
"NeverUseImplicitlyUnwrappedOptionals": false,
|
|
"NoAccessLevelOnExtensionDeclaration": true,
|
|
"NoAssignmentInExpressions": true,
|
|
"NoBlockComments": false,
|
|
"NoCasesWithOnlyFallthrough": true,
|
|
"NoEmptyLinesOpeningClosingBraces": false,
|
|
"NoEmptyTrailingClosureParentheses": true,
|
|
"NoLabelsInCasePatterns": true,
|
|
"NoLeadingUnderscores": false,
|
|
"NoParensAroundConditions": true,
|
|
"NoPlaygroundLiterals": true,
|
|
"NoVoidReturnOnFunctionSignature": true,
|
|
"OmitExplicitReturns": false,
|
|
"OneCasePerLine": true,
|
|
"OneVariableDeclarationPerLine": true,
|
|
"OnlyOneTrailingClosureArgument": true,
|
|
"OrderedImports": true,
|
|
"ReplaceForEachWithForLoop": true,
|
|
"ReturnVoidInsteadOfEmptyTuple": true,
|
|
"TypeNamesShouldBeCapitalized": true,
|
|
"UseEarlyExits": false,
|
|
"UseExplicitNilCheckInConditions": true,
|
|
"UseLetInEveryBoundCaseVariable": true,
|
|
"UseShorthandTypeNames": true,
|
|
"UseSingleLinePropertyGetter": true,
|
|
"UseSynthesizedInitializer": true,
|
|
"UseTripleSlashForDocumentationComments": true,
|
|
"UseWhereClausesInForLoops": false,
|
|
"ValidateDocumentationComments": false
|
|
},
|
|
"spacesAroundRangeFormationOperators": false,
|
|
"spacesBeforeEndOfLineComments": 2,
|
|
"tabWidth": 8,
|
|
"version": 1
|
|
} |