Skip to content

Commit

Permalink
reformat, add swiftformat config
Browse files Browse the repository at this point in the history
  • Loading branch information
maticzav committed Feb 1, 2021
1 parent 5048d4a commit a54e599
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 55 deletions.
54 changes: 0 additions & 54 deletions .swift-format

This file was deleted.

38 changes: 38 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# file options

--exclude Tests/XCTestManifests.swift,Tests/BadConfig,Snapshots

# format options

--allman false
--binarygrouping 4,8
--commas always
--comments indent
--decimalgrouping 3,6
--elseposition same-line
--empty void
--exponentcase lowercase
--exponentgrouping disabled
--fractiongrouping disabled
--header ignore
--hexgrouping 4,8
--hexliteralcase uppercase
--ifdef indent
--indent 4
--linebreaks lf
--maxwidth none
--octalgrouping 4,8
--operatorfunc spaced
--patternlet hoist
--ranges spaced
--self remove
--semicolons inline
--stripunusedargs always
--swiftversion 4.2
--trimwhitespace always
--wraparguments preserve
--wrapcollections preserve

# rules

--enable isEmpty
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ final class IntrospectionTests: XCTestCase {
/* Tests */

XCTAssertNotNil(schema)
XCTAssertTrue(schema.objects.map { $0.name }.count > 0)
XCTAssertTrue(!schema.objects.map { $0.name }.isEmpty)
}
}

0 comments on commit a54e599

Please sign in to comment.