Skip to content

Commit 8f275c0

Browse files
committed
apply lint
1 parent 00a334e commit 8f275c0

24 files changed

+175
-183
lines changed

Package.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let package = Package(
1010
.library(
1111
name: "CustardKit",
1212
targets: ["CustardKit"]
13-
),
13+
)
1414
],
1515
dependencies: [
1616
// Dependencies declare other packages that this package depends on.
@@ -28,6 +28,6 @@ let package = Package(
2828
name: "CustardKitTests",
2929
dependencies: ["CustardKit"],
3030
path: "swift/tests/CustardKitTests"
31-
),
31+
)
3232
]
3333
)

swift/examples/Cuneiforms.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ let keys: [CustardKeyPositionSpecifier: CustardInterfaceKey] = [
3636
longpress_actions: .init(repeat: [.delete(1)]),
3737
variations: []
3838
)
39-
),
39+
)
4040
]
4141

4242
var cuneiforms_keys = keys
43-
cuneiforms.indices.forEach{
43+
cuneiforms.indices.forEach {
4444
cuneiforms_keys[.gridScroll(GridScrollPositionSpecifier(cuneiforms_keys.count))] = .custom(
4545
.init(
4646
design: .init(label: .text(cuneiforms[$0]), color: .normal),

swift/examples/FlickGreek.swift

+16-16
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,20 @@ let flick_greek = Custard(
5757
key: .init(
5858
design: .init(label: .text("´")),
5959
press_actions: [.input("´"), .replaceLastCharacters([
60-
"ε´":"έ",
61-
"υ´":"ύ",
62-
"ι´":"ί",
63-
"ο´":"ό",
64-
"α´":"ά",
65-
"η´":"ή",
66-
"ω´":"ώ",
67-
"Ε´":"Έ",
68-
"Υ´":"Ύ",
69-
"Ι´":"Ί",
70-
"Ο´":"Ό",
71-
"Α´":"Ά",
72-
"Η´":"Ή",
73-
"Ω´":"Ώ"
60+
"ε´": "έ",
61+
"υ´": "ύ",
62+
"ι´": "ί",
63+
"ο´": "ό",
64+
"α´": "ά",
65+
"η´": "ή",
66+
"ω´": "ώ",
67+
"Ε´": "Έ",
68+
"Υ´": "Ύ",
69+
"Ι´": "Ί",
70+
"Ο´": "Ό",
71+
"Α´": "Ά",
72+
"Η´": "Ή",
73+
"Ω´": "Ώ"
7474
])],
7575
longpress_actions: .none
7676
)
@@ -82,15 +82,15 @@ let flick_greek = Custard(
8282
press_actions: [.toggleCapsLockState],
8383
longpress_actions: .none
8484
)
85-
),
85+
)
8686
]
8787
)
8888
),
8989
.gridFit(.init(x: 2, y: 3)): .custom(.flickSimpleInputs(center: "'", subs: ["\"", "(", ")"], centerLabel: "'\"()")),
9090
.gridFit(.init(x: 3, y: 3)): .custom(.flickSimpleInputs(center: ".", subs: [",", ";", "!"], centerLabel: ".,;!")),
9191
.gridFit(.init(x: 4, y: 0)): .custom(.flickDelete()),
9292
.gridFit(.init(x: 4, y: 1)): .custom(.flickSpace()),
93-
.gridFit(.init(x: 4, y: 2, width: 1, height: 2)): .system(.enter),
93+
.gridFit(.init(x: 4, y: 2, width: 1, height: 2)): .system(.enter)
9494
]
9595
)
9696
)

swift/examples/Hieroglyphs.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ let keys: [CustardKeyPositionSpecifier: CustardInterfaceKey] = [
3636
longpress_actions: .init(repeat: [.delete(1)]),
3737
variations: []
3838
)
39-
),
39+
)
4040
]
4141

4242
var hieroglyphs_keys = keys
43-
hieroglyphs.indices.forEach{
43+
hieroglyphs.indices.forEach {
4444
hieroglyphs_keys[.gridScroll(GridScrollPositionSpecifier(hieroglyphs_keys.count))] = .custom(
4545
.init(
4646
design: .init(label: .text(hieroglyphs[$0]), color: .normal),

swift/examples/InterestingLayout.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ let interesting_layout = Custard(
8181
longpress_actions: .none,
8282
variations: []
8383
)
84-
),
84+
)
8585
]
8686
)
8787
)

swift/examples/MdKeyboard.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ let md_custard = Custard(
7070
press_actions: [.input("``"), .moveCursor(-1)],
7171
longpress_actions: .none
7272
)
73-
),
73+
)
7474
]
7575
)
7676
),
@@ -111,7 +111,7 @@ let md_custard = Custard(
111111
press_actions: [.input("-")],
112112
longpress_actions: .none
113113
)
114-
),
114+
)
115115
]
116116
)
117117
),
@@ -152,7 +152,7 @@ let md_custard = Custard(
152152
press_actions: [.input("##### ")],
153153
longpress_actions: .none
154154
)
155-
),
155+
)
156156

157157
]
158158
)
@@ -182,7 +182,7 @@ let md_custard = Custard(
182182
),
183183
.gridFit(.init(x: 5, y: 0)): .custom(.flickDelete()),
184184
.gridFit(.init(x: 5, y: 1)): .custom(.flickSpace()),
185-
.gridFit(.init(x: 5, y: 2, width: 1, height: 2)): .system(.enter),
185+
.gridFit(.init(x: 5, y: 2, width: 1, height: 2)): .system(.enter)
186186
]
187187
)
188188
)

swift/examples/NumberFont.swift

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ let numbers = [
1818
Array("𝟏𝟐𝟑𝟒𝟓𝟔𝟕𝟖𝟗𝟎")
1919
]
2020

21-
for i in numbers.indices{
22-
for j in numbers[i].indices{
21+
for i in numbers.indices {
22+
for j in numbers[i].indices {
2323
let (x, y) = (j, i)
2424
numberkeys[.gridFit(.init(x: x, y: y))] = .custom(pcStyleInputKeys(String(numbers[i][j])))
2525
}
@@ -53,7 +53,6 @@ numberkeys[.gridFit(.init(x: 3, y: 4, width: 4, height: 1))] = .custom(
5353
)
5454
numberkeys[.gridFit(.init(x: 7, y: 4, width: 3, height: 1))] = .system(.enter)
5555

56-
5756
let number_font = Custard(
5857
identifier: "number_font",
5958
language: .none,

swift/examples/TexBoard.swift

+8-8
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ let tex_tab = Custard(
110110
press_actions: [.input("|")],
111111
longpress_actions: .none
112112
)
113-
),
113+
)
114114
]
115115
)
116116
),
@@ -152,7 +152,7 @@ let tex_tab = Custard(
152152
press_actions: [.input("\\div ")],
153153
longpress_actions: .none
154154
)
155-
),
155+
)
156156
]
157157
)
158158
),
@@ -193,7 +193,7 @@ let tex_tab = Custard(
193193
press_actions: [.input("\\left\\{\\right\\}"), .moveCursor(-8)],
194194
longpress_actions: .none
195195
)
196-
),
196+
)
197197
]
198198
)
199199
),
@@ -275,7 +275,7 @@ let tex_tab = Custard(
275275
press_actions: [.input("\\sqrt[]{}"), .moveCursor(-3)],
276276
longpress_actions: .none
277277
)
278-
),
278+
)
279279
]
280280
)
281281
),
@@ -316,7 +316,7 @@ let tex_tab = Custard(
316316
press_actions: [.input("\\equiv ")],
317317
longpress_actions: .none
318318
)
319-
),
319+
)
320320
]
321321
)
322322
),
@@ -341,7 +341,7 @@ let tex_tab = Custard(
341341
press_actions: [.input("\\mathbb ")],
342342
longpress_actions: .none
343343
)
344-
),
344+
)
345345
]
346346
)
347347
),
@@ -366,14 +366,14 @@ let tex_tab = Custard(
366366
press_actions: [.input("\\empty ")],
367367
longpress_actions: .none
368368
)
369-
),
369+
)
370370
]
371371
)
372372
),
373373
.gridFit(.init(x: 3, y: 3)): .custom(.flickSimpleInputs(center: ".", subs: [",", "!", "?"], centerLabel: ".,!?")),
374374
.gridFit(.init(x: 4, y: 0)): .custom(.flickDelete()),
375375
.gridFit(.init(x: 4, y: 1)): .custom(.flickSpace()),
376-
.gridFit(.init(x: 4, y: 2, width: 1, height: 2)): .system(.enter),
376+
.gridFit(.init(x: 4, y: 2, width: 1, height: 2)): .system(.enter)
377377
]
378378
)
379379
)

0 commit comments

Comments
 (0)