Skip to content

Commit

Permalink
Added SwiftFormat to .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rwbutler committed Dec 12, 2019
1 parent 9e99a6f commit fa62ca9
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.0
39 changes: 39 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
--allman false
--binarygrouping none
--closingparen balanced
--commas always
--conflictmarkers reject
--decimalgrouping none
--disable redundantReturn
--elseposition same-line
--empty void
--exclude Example/Pods
--exclude Package.swift
--exclude ObjCExample
--exponentcase lowercase
--exponentgrouping disabled
--fractiongrouping disabled
--fragment false
--header ignore
--hexgrouping none
--hexliteralcase uppercase
--ifdef outdent
--importgrouping alphabetized
--indent 4
--indentcase false
--linebreaks lf
--maxwidth none
--octalgrouping none
--operatorfunc spaced
--patternlet hoist
--ranges spaced
--self init-only
--selfrequired
--semicolons never
--stripunusedargs always
--tabwidth unspecified
--trailingclosures
--trimwhitespace always
--wraparguments before-first
--wrapcollections preserve
--xcodeindentation disabled
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ osx_image: xcode11.1
before_install:
- gem install cocoapods -v '1.8.3'
install:
- brew install swiftformat
- ./install_swiftlint.sh
script:
- gem install travis
- travis lint .travis.yml --no-interactive
- swiftformat .
- swiftlint
- xcodebuild clean build test -workspace Example/Connectivity.xcworkspace -scheme Connectivity-Example -destination "platform=iOS Simulator,name=iPhone X" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint

0 comments on commit fa62ca9

Please sign in to comment.