2
0

.swift-format 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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" : true,
  13. "lineBreakBeforeEachGenericRequirement" : false,
  14. "lineLength" : 100,
  15. "maximumBlankLines" : 1,
  16. "prioritizeKeepingFunctionOutputTogether" : true,
  17. "respectsExistingLineBreaks" : true,
  18. "rules" : {
  19. "AllPublicDeclarationsHaveDocumentation" : false,
  20. "AlwaysUseLowerCamelCase" : false,
  21. "AmbiguousTrailingClosureOverload" : true,
  22. "BeginDocumentationCommentWithOneLineSummary" : false,
  23. "DoNotUseSemicolons" : true,
  24. "DontRepeatTypeInStaticProperties" : true,
  25. "FileScopedDeclarationPrivacy" : true,
  26. "FullyIndirectEnum" : true,
  27. "GroupNumericLiterals" : true,
  28. "IdentifiersMustBeASCII" : true,
  29. "NeverForceUnwrap" : false,
  30. "NeverUseForceTry" : false,
  31. "NeverUseImplicitlyUnwrappedOptionals" : false,
  32. "NoAccessLevelOnExtensionDeclaration" : true,
  33. "NoAssignmentInExpressions" : true,
  34. "NoBlockComments" : false,
  35. "NoCasesWithOnlyFallthrough" : true,
  36. "NoEmptyTrailingClosureParentheses" : true,
  37. "NoLabelsInCasePatterns" : false,
  38. "NoLeadingUnderscores" : false,
  39. "NoParensAroundConditions" : true,
  40. "NoVoidReturnOnFunctionSignature" : true,
  41. "OneCasePerLine" : true,
  42. "OneVariableDeclarationPerLine" : true,
  43. "OnlyOneTrailingClosureArgument" : true,
  44. "OrderedImports" : true,
  45. "ReturnVoidInsteadOfEmptyTuple" : true,
  46. "UseEarlyExits" : false,
  47. "UseLetInEveryBoundCaseVariable" : false,
  48. "UseShorthandTypeNames" : true,
  49. "UseSingleLinePropertyGetter" : false,
  50. "UseSynthesizedInitializer" : false,
  51. "UseTripleSlashForDocumentationComments" : true,
  52. "UseWhereClausesInForLoops" : false,
  53. "ValidateDocumentationComments" : false
  54. },
  55. "spacesAroundRangeFormationOperators" : true,
  56. "tabWidth" : 2,
  57. "version" : 1
  58. }