Add base SwiftFormat config

This commit is contained in:
Nindi Gill 2023-11-19 19:22:14 +11:00
parent 18867c7d81
commit d4204b4271
No known key found for this signature in database
GPG key ID: FF9A7FD590D4F4B1
3 changed files with 8 additions and 1 deletions

1
.swift-version Normal file
View file

@ -0,0 +1 @@
5.9

7
.swiftformat Normal file
View file

@ -0,0 +1,7 @@
--commas inline
--decimalgrouping 3,4
--disable wrapMultilineStatementBraces
--enable docComments
--hexgrouping none
--redundanttype explicit
--wrapconditions before-first

View file

@ -38,7 +38,6 @@ opt_in_rules:
- empty_string
- empty_xctest_method
- enum_case_associated_values_count
- explicit_enum_raw_value
- explicit_init
- explicit_type_interface
- file_header