-
Notifications
You must be signed in to change notification settings - Fork 11
/
.swiftformat
25 lines (23 loc) · 1007 Bytes
/
.swiftformat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Formatting
--header //===----------------------------------------------------------------------===//\n//\n// This source file is part of the Vexil open source project\n//\n// Copyright (c) {year} Unsigned Apps and the open source contributors.\n// Licensed under the MIT license\n//\n// See LICENSE for license information\n//\n// SPDX-License-Identifier: MIT\n//\n//===----------------------------------------------------------------------===//
--self init-only
--semicolons never
--ifdef outdent
--funcattributes prev-line
--typeattributes prev-line
--storedvarattrs prev-line
--computedvarattrs prev-line
--stripunusedargs closure-only
# Disabling default rules
--disable consecutiveBlankLines
--disable consecutiveSpaces
--disable spaceInsideBrackets
--disable wrap
--disable blankLinesAtEndOfScope
--disable blankLinesAtStartOfScope
# Enabling optional rules
--enable blankLineAfterSwitchCase
--enable blankLinesBetweenImports
--enable blockComments
--enable isEmpty
--enable wrapConditionalBodies