瀏覽代碼

.swiftformat

Marcin Krzyzanowski 5 年之前
父節點
當前提交
7c94c0bc9d
共有 1 個文件被更改,包括 36 次插入0 次删除
  1. 36 0
      .swiftformat

+ 36 - 0
.swiftformat

@@ -0,0 +1,36 @@
+
+--exclude .build, Carthage, DerivedData, .git, Tests/LinuxMain.swift, Tests/CryptoSwiftTests/XCTestManifests.swift, Tests/TestsPerformance/XCTestManifests.swift
+
+--swiftversion 5.0
+--allman false
+--commas always
+--comments indent
+--elseposition same-line
+--empty void
+--exponentcase lowercase
+--exponentgrouping disabled
+--fractiongrouping disabled
+--header ignore
+--octalgrouping 4,8
+--decimalgrouping 3,6
+--binarygrouping 4,8
+--hexgrouping ignore
+--hexliteralcase lowercase
+--ifdef indent
+--indent 2
+--indentcase true
+--importgrouping testable-bottom
+--linebreaks lf
+--operatorfunc spaced
+--patternlet inline
+--ranges no-space
+--self insert
+--semicolons inline
+--stripunusedargs closure-only
+--trimwhitespace always
+--wraparguments preserve
+--wrapcollections before-first
+
+# rules
+
+--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