Added ‘.swiftformat’ config file
This commit is contained in:
parent
540307b52a
commit
0cb5f892ab
|
@ -0,0 +1,35 @@
|
||||||
|
# file options
|
||||||
|
|
||||||
|
--symlinks ignore
|
||||||
|
|
||||||
|
--exclude Package.swift
|
||||||
|
|
||||||
|
# format options
|
||||||
|
|
||||||
|
--allman false
|
||||||
|
--self insert
|
||||||
|
--elseposition same-line
|
||||||
|
--ranges nospace
|
||||||
|
--semicolons inline
|
||||||
|
--importgrouping testable-bottom
|
||||||
|
--trimwhitespace nonblank-lines
|
||||||
|
--commas always
|
||||||
|
--indent 4
|
||||||
|
--empty tuple
|
||||||
|
--hexliteralcase lowercase
|
||||||
|
--indentcase false
|
||||||
|
--operatorfunc spaced
|
||||||
|
--wraparguments before-first
|
||||||
|
--wrapcollections before-first
|
||||||
|
--stripunusedargs closure-only
|
||||||
|
--trimwhitespace always
|
||||||
|
--decimalgrouping ignore
|
||||||
|
|
||||||
|
# rules
|
||||||
|
|
||||||
|
--disable andOperator
|
||||||
|
--disable emptyBraces
|
||||||
|
--disable redundantLetError
|
||||||
|
--disable redundantNilInit
|
||||||
|
--disable redundantLet
|
||||||
|
--disable redundantSelf
|
Loading…
Reference in New Issue