.swiftformat 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --exclude .build, Carthage, DerivedData, .git, Tests/LinuxMain.swift, Tests/CryptoSwiftTests/XCTestManifests.swift, Tests/TestsPerformance/XCTestManifests.swift
  2. --swiftversion 5.0
  3. --allman false
  4. --commas always
  5. --comments indent
  6. --elseposition same-line
  7. --empty void
  8. --exponentcase lowercase
  9. --exponentgrouping disabled
  10. --fractiongrouping disabled
  11. --header ignore
  12. --octalgrouping 4,8
  13. --decimalgrouping 3,6
  14. --binarygrouping 4,8
  15. --hexgrouping ignore
  16. --hexliteralcase lowercase
  17. --ifdef indent
  18. --indent 2
  19. --indentcase true
  20. --importgrouping testable-bottom
  21. --linebreaks lf
  22. --operatorfunc spaced
  23. --patternlet inline
  24. --ranges no-space
  25. --self insert
  26. --semicolons inline
  27. --stripunusedargs closure-only
  28. --trimwhitespace always
  29. --wraparguments preserve
  30. --wrapcollections before-first
  31. # rules
  32. --rules indent, braces, isEmpty, redundantBreak, blankLinesAroundMark, blankLinesAtEndOfScope, blankLinesBetweenScopes, consecutiveBlankLines, consecutiveSpaces, duplicateImports, elseOnSameLine, leadingDelimiters, redundantBreak, redundantExtensionACL, redundantFileprivate, redundantGet, redundantInit, redundantLet, redundantNilInit, redundantObjc, redundantParens, redundantPattern, redundantRawValues, redundantReturn, redundantSelf, redundantVoidReturnType, semicolons, sortedImports, spaceAroundBraces, spaceAroundBrackets, spaceAroundComments, spaceAroundGenerics, spaceAroundOperators, spaceAroundParens, spaceInsideBraces, spaceInsideBrackets, specifiers, strongOutlets, strongifiedSelf, todos, void, wrapArguments, yodaConditions, trailingSpace