From 0cb5f892abe75044060aeeaa8b460628b9564ca5 Mon Sep 17 00:00:00 2001 From: Vincent Esche Date: Sat, 5 Oct 2019 16:12:37 +0200 Subject: [PATCH] =?UTF-8?q?Added=20=E2=80=98.swiftformat=E2=80=99=20config?= =?UTF-8?q?=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .swiftformat | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .swiftformat diff --git a/.swiftformat b/.swiftformat new file mode 100644 index 0000000..324b388 --- /dev/null +++ b/.swiftformat @@ -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