.swift-format 2.2 KB

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