mirror of
https://github.com/apple/swift-http-types.git
synced 2025-04-20 03:25:02 +08:00
# Motivation We just adopted GH actions and want to make sure all the CI checks are green. # Modification This PR makes the necessary changes to pass all checks. Including: - Adding a licenseignore file - Moving `swift-format` and adopting the config that we use in all other swift on server repos. # Result Green CI.
63 lines
2.2 KiB
Plaintext
63 lines
2.2 KiB
Plaintext
{
|
|
"version" : 1,
|
|
"indentation" : {
|
|
"spaces" : 4
|
|
},
|
|
"tabWidth" : 4,
|
|
"fileScopedDeclarationPrivacy" : {
|
|
"accessLevel" : "private"
|
|
},
|
|
"spacesAroundRangeFormationOperators" : false,
|
|
"indentConditionalCompilationBlocks" : false,
|
|
"indentSwitchCaseLabels" : false,
|
|
"lineBreakAroundMultilineExpressionChainComponents" : false,
|
|
"lineBreakBeforeControlFlowKeywords" : false,
|
|
"lineBreakBeforeEachArgument" : true,
|
|
"lineBreakBeforeEachGenericRequirement" : true,
|
|
"lineLength" : 120,
|
|
"maximumBlankLines" : 1,
|
|
"respectsExistingLineBreaks" : true,
|
|
"prioritizeKeepingFunctionOutputTogether" : true,
|
|
"rules" : {
|
|
"AllPublicDeclarationsHaveDocumentation" : false,
|
|
"AlwaysUseLiteralForEmptyCollectionInit" : false,
|
|
"AlwaysUseLowerCamelCase" : false,
|
|
"AmbiguousTrailingClosureOverload" : 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" : true,
|
|
"NoCasesWithOnlyFallthrough" : true,
|
|
"NoEmptyTrailingClosureParentheses" : true,
|
|
"NoLabelsInCasePatterns" : true,
|
|
"NoLeadingUnderscores" : false,
|
|
"NoParensAroundConditions" : true,
|
|
"NoVoidReturnOnFunctionSignature" : true,
|
|
"OmitExplicitReturns" : true,
|
|
"OneCasePerLine" : true,
|
|
"OneVariableDeclarationPerLine" : true,
|
|
"OnlyOneTrailingClosureArgument" : true,
|
|
"OrderedImports" : true,
|
|
"ReplaceForEachWithForLoop" : true,
|
|
"ReturnVoidInsteadOfEmptyTuple" : true,
|
|
"UseEarlyExits" : false,
|
|
"UseExplicitNilCheckInConditions" : false,
|
|
"UseLetInEveryBoundCaseVariable" : false,
|
|
"UseShorthandTypeNames" : true,
|
|
"UseSingleLinePropertyGetter" : false,
|
|
"UseSynthesizedInitializer" : false,
|
|
"UseTripleSlashForDocumentationComments" : true,
|
|
"UseWhereClausesInForLoops" : false,
|
|
"ValidateDocumentationComments" : false
|
|
}
|
|
}
|