-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftformat
24 lines (21 loc) · 931 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
# Formatting
--header //===----------------------------------------------------------------------===//\n//\n// This source file is part of a technology demo for /dev/world 2024. \n//\n// Copyright © {year} ANZ. All rights reserved.\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
--varattributes same-line
--stripunusedargs closure-only
# Disabling default rules
--disable consecutiveBlankLines
--disable consecutiveSpaces
--disable spaceInsideBrackets
--disable wrap
--disable blankLinesAtEndOfScope
--disable blankLinesAtStartOfScope
# Enabling optional rules
--enable blankLinesBetweenImports
--enable blockComments
--enable isEmpty
--enable wrapConditionalBodies