-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
.swiftformat
26 lines (20 loc) · 839 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
26
# Minimum swiftformat version
--minversion 0.52.0
# Swift version
--swiftversion 5.7
# file options
--exclude .build
# rules
--disable redundantReturn, extensionAccessControl
# format options
--ifdef no-indent
--nospaceoperators ...,..<
--patternlet inline
--self insert
--stripunusedargs unnamed-only
#--maxwidth 150
--wraparguments before-first
--wrapparameters before-first
--wrapcollections before-first
#file header
#--header "//===----------------------------------------------------------------------===//\n//\n// This source file is part of the MQTTNIO project\n//\n// Copyright (c) 2020-{year} Adam Fowler\n// Licensed under Apache License v2.0\n//\n// See LICENSE.txt for license information\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n//===----------------------------------------------------------------------===//"