.swift-format 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "fileScopedDeclarationPrivacy" : {
  3. "accessLevel" : "private"
  4. },
  5. "indentation" : {
  6. "spaces" : 2
  7. },
  8. "indentConditionalCompilationBlocks" : false,
  9. "indentSwitchCaseLabels" : false,
  10. "lineBreakAroundMultilineExpressionChainComponents" : false,
  11. "lineBreakBeforeControlFlowKeywords" : false,
  12. "lineBreakBeforeEachArgument" : false,
  13. "lineBreakBeforeEachGenericRequirement" : false,
  14. "lineLength" : 80,
  15. "maximumBlankLines" : 1,
  16. "multiElementCollectionTrailingCommas" : true,
  17. "noAssignmentInExpressions" : {
  18. "allowedFunctions" : [
  19. "XCTAssertNoThrow"
  20. ]
  21. },
  22. "prioritizeKeepingFunctionOutputTogether" : false,
  23. "respectsExistingLineBreaks" : true,
  24. "rules" : {
  25. "AllPublicDeclarationsHaveDocumentation" : false,
  26. "AlwaysUseLiteralForEmptyCollectionInit" : true,
  27. "AlwaysUseLowerCamelCase" : true,
  28. "AmbiguousTrailingClosureOverload" : false,
  29. "BeginDocumentationCommentWithOneLineSummary" : true,
  30. "DoNotUseSemicolons" : true,
  31. "DontRepeatTypeInStaticProperties" : true,
  32. "FileScopedDeclarationPrivacy" : true,
  33. "FullyIndirectEnum" : true,
  34. "GroupNumericLiterals" : true,
  35. "IdentifiersMustBeASCII" : true,
  36. "NeverForceUnwrap" : true,
  37. "NeverUseForceTry" : true,
  38. "NeverUseImplicitlyUnwrappedOptionals" : true,
  39. "NoAccessLevelOnExtensionDeclaration" : true,
  40. "NoAssignmentInExpressions" : true,
  41. "NoBlockComments" : true,
  42. "NoCasesWithOnlyFallthrough" : true,
  43. "NoEmptyTrailingClosureParentheses" : true,
  44. "NoLabelsInCasePatterns" : true,
  45. "NoLeadingUnderscores" : false,
  46. "NoParensAroundConditions" : true,
  47. "NoPlaygroundLiterals" : true,
  48. "NoVoidReturnOnFunctionSignature" : true,
  49. "OmitExplicitReturns" : true,
  50. "OneCasePerLine" : true,
  51. "OneVariableDeclarationPerLine" : true,
  52. "OnlyOneTrailingClosureArgument" : true,
  53. "OrderedImports" : true,
  54. "ReplaceForEachWithForLoop" : true,
  55. "ReturnVoidInsteadOfEmptyTuple" : true,
  56. "TypeNamesShouldBeCapitalized" : true,
  57. "UseEarlyExits" : false,
  58. "UseExplicitNilCheckInConditions" : true,
  59. "UseLetInEveryBoundCaseVariable" : true,
  60. "UseShorthandTypeNames" : true,
  61. "UseSingleLinePropertyGetter" : true,
  62. "UseSynthesizedInitializer" : true,
  63. "UseTripleSlashForDocumentationComments" : true,
  64. "UseWhereClausesInForLoops" : false,
  65. "ValidateDocumentationComments" : true
  66. },
  67. "spacesBeforeEndOfLineComments": 2,
  68. "spacesAroundRangeFormationOperators" : false,
  69. "tabWidth" : 2,
  70. "version" : 1
  71. }