🔧 Configure .swiftformat

This commit is contained in:
Ben Chatelain 2019-01-29 23:06:15 -07:00
parent 1cbf055fa6
commit 40fd579b1c
3 changed files with 21 additions and 0 deletions

1
.swift-version Normal file
View file

@ -0,0 +1 @@
4.2

18
.swiftformat Normal file
View file

@ -0,0 +1,18 @@
#
# .swiftformat
# mas-cli
#
# https://github.com/nicklockwood/SwiftFormat#config-file
#
--exclude Carthage/
# Disabled rules
--disable blankLinesAroundMark
# Enabled rules (disabled by default)
--enable trailingClosures
# Rule options
--commas inline
--importgrouping testable-top

View file

@ -263,6 +263,7 @@
B576FE3421E98AAE0016B39D /* StoreSearchSpec.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StoreSearchSpec.swift; sourceTree = "<group>"; };
B5793E28219BDD4800135B39 /* JSON */ = {isa = PBXFileReference; lastKnownFileType = folder; path = JSON; sourceTree = "<group>"; };
B588CE0121DC89490047D305 /* ExternalCommand.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExternalCommand.swift; sourceTree = "<group>"; };
B592D8522201702A00A9C970 /* .swiftformat */ = {isa = PBXFileReference; lastKnownFileType = text; path = .swiftformat; sourceTree = "<group>"; };
B594B11F21D53A8200F3AC59 /* Uninstall.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Uninstall.swift; sourceTree = "<group>"; };
B594B12121D5416100F3AC59 /* ListCommandSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ListCommandSpec.swift; sourceTree = "<group>"; };
B594B12421D580BB00F3AC59 /* UninstallCommandSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UninstallCommandSpec.swift; sourceTree = "<group>"; };
@ -409,6 +410,7 @@
B55B3D9421EEA6A90009A1A5 /* .hound.yml */,
B55B3D9821EEA6AA0009A1A5 /* .ruby-version */,
B55B3D9B21EEBD6E0009A1A5 /* .shellcheck.yml */,
B592D8522201702A00A9C970 /* .swiftformat */,
B55B3D9521EEA6AA0009A1A5 /* .swiftlint.yml */,
B55B3D9621EEA6AA0009A1A5 /* .travis.yml */,
B55B3D8C21ED96FD0009A1A5 /* bin */,