mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-05-17 10:30:35 +00:00
43 lines
825 B
Plaintext
43 lines
825 B
Plaintext
# file options
|
|
|
|
--exclude Tests/XCTestManifests.swift,Tests/BadConfig,Snapshots,Build,PluginTests
|
|
|
|
# format options
|
|
|
|
--allman false
|
|
--binarygrouping 4,8
|
|
--commas always
|
|
--decimalgrouping 3,6
|
|
--elseposition same-line
|
|
--voidtype void
|
|
--exponentcase lowercase
|
|
--exponentgrouping disabled
|
|
--fractiongrouping disabled
|
|
--header ignore
|
|
--hexgrouping 4,8
|
|
--hexliteralcase uppercase
|
|
--ifdef indent
|
|
--indent 4
|
|
--indentcase false
|
|
--importgrouping testable-bottom
|
|
--linebreaks lf
|
|
--maxwidth none
|
|
--octalgrouping 4,8
|
|
--operatorfunc spaced
|
|
--patternlet hoist
|
|
--ranges spaced
|
|
--self remove
|
|
--semicolons inline
|
|
--stripunusedargs always
|
|
--swiftversion 5.7
|
|
--trimwhitespace always
|
|
--wraparguments preserve
|
|
--wrapcollections preserve
|
|
--wrapconditions after-first
|
|
|
|
# rules
|
|
|
|
--enable isEmpty
|
|
# --enable noGuardInTests
|
|
--enable preferFinalClasses
|