Skip to content

Commit de969f2

Browse files
committed
chore: swift-format -> swiftformat
1 parent 9646ac9 commit de969f2

File tree

3 files changed

+86
-9
lines changed

3 files changed

+86
-9
lines changed

.github/workflows/format.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14-
15-
- name: Install swift-format
16-
run: |
17-
brew install swift-format
1814
- name: Check formatting
1915
run: |
2016
found_issues=false
2117
files_with_issues=()
2218
2319
while IFS= read -r file; do
24-
if ! swift-format lint --strict "$file"; then
20+
if ! swiftformat --config .swiftformat --lint "$file"; then
2521
found_issues=true
2622
files_with_issues+=("$file")
2723
echo "❌ Formatting issues found in: $file"

.swift-format

Lines changed: 0 additions & 4 deletions
This file was deleted.

.swiftformat

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
--acronyms ID,URL,UUID
2+
--allman false
3+
--anonymousforeach convert
4+
--assetliterals visual-width
5+
--asynccapturing
6+
--beforemarks
7+
--binarygrouping 4,8
8+
--categorymark "MARK: %c"
9+
--classthreshold 0
10+
--closingparen balanced
11+
--closurevoid remove
12+
--commas always
13+
--conflictmarkers reject
14+
--decimalgrouping ignore
15+
--elseposition same-line
16+
--emptybraces spaced
17+
--enumthreshold 0
18+
--exponentcase lowercase
19+
--exponentgrouping disabled
20+
--extensionacl on-extension
21+
--extensionlength 0
22+
--extensionmark "MARK: - %t + %c"
23+
--fractiongrouping disabled
24+
--fragment false
25+
--funcattributes preserve
26+
--generictypes
27+
--groupedextension "MARK: %c"
28+
--guardelse auto
29+
--header ignore
30+
--hexgrouping 4,8
31+
--hexliteralcase uppercase
32+
--ifdef no-indent
33+
--importgrouping alpha
34+
--indent 4
35+
--indentcase false
36+
--indentstrings false
37+
--lifecycle
38+
--lineaftermarks true
39+
--linebreaks lf
40+
--markcategories true
41+
--markextensions always
42+
--marktypes always
43+
--maxwidth none
44+
--modifierorder
45+
--nevertrailing
46+
--nospaceoperators
47+
--nowrapoperators
48+
--octalgrouping 4,8
49+
--onelineforeach ignore
50+
--operatorfunc spaced
51+
--organizetypes actor,class,enum,struct
52+
--patternlet hoist
53+
--ranges no-space
54+
--redundanttype infer-locals-only
55+
--self remove
56+
--selfrequired
57+
--semicolons inline
58+
--shortoptionals always
59+
--smarttabs enabled
60+
--someany true
61+
--stripunusedargs unnamed-only
62+
--structthreshold 0
63+
--tabwidth unspecified
64+
--throwcapturing
65+
--trailingclosures
66+
--trimwhitespace always
67+
--typeattributes preserve
68+
--typeblanklines remove
69+
--typemark "MARK: - %t"
70+
--varattributes preserve
71+
--voidtype void
72+
--wraparguments preserve
73+
--wrapcollections preserve
74+
--wrapconditions preserve
75+
--wrapeffects preserve
76+
--wrapenumcases always
77+
--wrapparameters preserve
78+
--wrapreturntype preserve
79+
--wrapternary default
80+
--wraptypealiases preserve
81+
--xcodeindentation disabled
82+
--yodaswap always
83+
--disable blankLineAfterImports,unusedArguments
84+
--enable docComments
85+
--disable enumnamespaces

0 commit comments

Comments
 (0)