Added ‘.swiftformat’ config file

This commit is contained in:
Vincent Esche 2019-10-05 16:12:37 +02:00
parent 540307b52a
commit 0cb5f892ab
1 changed files with 35 additions and 0 deletions

35
.swiftformat Normal file
View File

@ -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