Skip to content

Commit 9ae6100

Browse files
committed
chore: add metadata lint ci step
chore: cleaned out left over spaces in metadata
1 parent f67b883 commit 9ae6100

4 files changed

Lines changed: 63 additions & 41 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,25 @@ jobs:
9999
wget https://raw.githubusercontent.com/WayfireWM/wayfire/master/uncrustify.ini
100100
git ls-files | grep "hpp$\|cpp$" | xargs ../uncrustify/build/uncrustify -c uncrustify.ini --no-backup --replace
101101
git diff --exit-code
102+
103+
lint-xml:
104+
runs-on: ubuntu-latest
105+
106+
steps:
107+
- name: Checkout Code
108+
uses: actions/checkout@v4
109+
110+
- name: Install xmlstarlet
111+
run: sudo apt-get update && sudo apt-get install -y xmlstarlet
112+
113+
- name: Check XML
114+
run: |
115+
find metadata -name "*.xml" -exec xmlstarlet val --well-formed {} +
116+
117+
- name: Check XML Format
118+
run: |
119+
while IFS= read -r file; do
120+
echo "File : ${file}"
121+
xmlstarlet fo --indent-tab "$file" > "${file}.tmp"
122+
diff -u "$file" "${file}.tmp"
123+
done < <(find metadata -name "*.xml*")

‎metadata/dock.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<category>Shell</category>
66
<option name="css_path" type="string">
77
<_short>CSS Path</_short>
8-
<default></default>
8+
<default/>
99
</option>
1010
<option name="autohide" type="bool">
1111
<_short>Autohide</_short>
@@ -89,7 +89,7 @@
8989
<default>20</default>
9090
</option>
9191
<option name="show_close" type="bool">
92-
<_short>Show Close Animations</_short>
92+
<_short>Show Close Animations</_short>
9393
<_long>Keep all window icons for up to 2 seconds to allow CSS animations.</_long>
9494
<default>true</default>
9595
</option>

‎metadata/locker.xml‎

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
<_name>Top Left</_name>
101101
</desc>
102102
<desc>
103-
<value>top-center</value>
104-
<_name>Top</_name>
103+
<value>top-center</value>
104+
<_name>Top</_name>
105105
</desc>
106106
<desc>
107107
<value>top-right</value>
@@ -134,7 +134,7 @@
134134
<default>center-center</default>
135135
</option>
136136
<option name="password_always" type="bool">
137-
<_short>Always show</_short>
137+
<_short>Always show</_short>
138138
<default>false</default>
139139
</option>
140140
</group>
@@ -151,8 +151,8 @@
151151
<_name>Top Left</_name>
152152
</desc>
153153
<desc>
154-
<value>top-center</value>
155-
<_name>Top</_name>
154+
<value>top-center</value>
155+
<_name>Top</_name>
156156
</desc>
157157
<desc>
158158
<value>top-right</value>
@@ -193,7 +193,7 @@
193193
<default>2em default</default>
194194
</option>
195195
<option name="pin_always" type="bool">
196-
<_short>Always show</_short>
196+
<_short>Always show</_short>
197197
<default>false</default>
198198
</option>
199199
</group>
@@ -210,8 +210,8 @@
210210
<_name>Top Left</_name>
211211
</desc>
212212
<desc>
213-
<value>top-center</value>
214-
<_name>Top</_name>
213+
<value>top-center</value>
214+
<_name>Top</_name>
215215
</desc>
216216
<desc>
217217
<value>top-right</value>
@@ -260,7 +260,7 @@
260260
<max>20</max>
261261
</option>
262262
<option name="fingerprint_always" type="bool">
263-
<_short>Always show</_short>
263+
<_short>Always show</_short>
264264
<default>false</default>
265265
</option>
266266
</group>
@@ -276,8 +276,8 @@
276276
<_name>Top Left</_name>
277277
</desc>
278278
<desc>
279-
<value>top-center</value>
280-
<_name>Top</_name>
279+
<value>top-center</value>
280+
<_name>Top</_name>
281281
</desc>
282282
<desc>
283283
<value>top-right</value>
@@ -310,8 +310,8 @@
310310
<default>top-right</default>
311311
</option>
312312
<option name="network_always" type="bool">
313-
<_short>Always show</_short>
314-
<default>true</default>
313+
<_short>Always show</_short>
314+
<default>true</default>
315315
</option>
316316
<option name="network_font" type="string">
317317
<_short>Network Font</_short>
@@ -340,8 +340,8 @@
340340
<_name>Top Left</_name>
341341
</desc>
342342
<desc>
343-
<value>top-center</value>
344-
<_name>Top</_name>
343+
<value>top-center</value>
344+
<_name>Top</_name>
345345
</desc>
346346
<desc>
347347
<value>top-right</value>
@@ -374,8 +374,8 @@
374374
<default>top-center</default>
375375
</option>
376376
<option name="clock_always" type="bool">
377-
<_short>Always show</_short>
378-
<default>true</default>
377+
<_short>Always show</_short>
378+
<default>true</default>
379379
</option>
380380
<option name="clock_font" type="string">
381381
<_short>Clock Font</_short>
@@ -394,8 +394,8 @@
394394
<_name>Top Left</_name>
395395
</desc>
396396
<desc>
397-
<value>top-center</value>
398-
<_name>Top</_name>
397+
<value>top-center</value>
398+
<_name>Top</_name>
399399
</desc>
400400
<desc>
401401
<value>top-right</value>
@@ -438,7 +438,7 @@
438438
<max>10</max>
439439
</option>
440440
<option name="weather_always" type="bool">
441-
<_short>Always show</_short>
441+
<_short>Always show</_short>
442442
<default>true</default>
443443
</option>
444444
</group>
@@ -454,8 +454,8 @@
454454
<_name>Top Left</_name>
455455
</desc>
456456
<desc>
457-
<value>top-center</value>
458-
<_name>Top</_name>
457+
<value>top-center</value>
458+
<_name>Top</_name>
459459
</desc>
460460
<desc>
461461
<value>top-right</value>
@@ -498,7 +498,7 @@
498498
<max>20</max>
499499
</option>
500500
<option name="user_always" type="bool">
501-
<_short>Always show</_short>
501+
<_short>Always show</_short>
502502
<default>true</default>
503503
</option>
504504
</group>
@@ -529,8 +529,8 @@
529529
<_name>Top Left</_name>
530530
</desc>
531531
<desc>
532-
<value>top-center</value>
533-
<_name>Top</_name>
532+
<value>top-center</value>
533+
<_name>Top</_name>
534534
</desc>
535535
<desc>
536536
<value>top-right</value>
@@ -563,7 +563,7 @@
563563
<default>bottom-right</default>
564564
</option>
565565
<option name="mpris_always" type="bool">
566-
<_short>Always show</_short>
566+
<_short>Always show</_short>
567567
<default>false</default>
568568
</option>
569569
<option name="mpris_icon_size" type="double">
@@ -605,8 +605,8 @@
605605
<_name>Top Left</_name>
606606
</desc>
607607
<desc>
608-
<value>top-center</value>
609-
<_name>Top</_name>
608+
<value>top-center</value>
609+
<_name>Top</_name>
610610
</desc>
611611
<desc>
612612
<value>top-right</value>
@@ -653,7 +653,7 @@
653653
<max>10</max>
654654
</option>
655655
<option name="battery_always" type="bool">
656-
<_short>Always show</_short>
656+
<_short>Always show</_short>
657657
<default>true</default>
658658
</option>
659659
</group>
@@ -669,8 +669,8 @@
669669
<_name>Top Left</_name>
670670
</desc>
671671
<desc>
672-
<value>top-center</value>
673-
<_name>Top</_name>
672+
<value>top-center</value>
673+
<_name>Top</_name>
674674
</desc>
675675
<desc>
676676
<value>top-right</value>
@@ -703,7 +703,7 @@
703703
<default>top-right</default>
704704
</option>
705705
<option name="volume_always" type="bool">
706-
<_short>Always show</_short>
706+
<_short>Always show</_short>
707707
<default>false</default>
708708
</option>
709709
<option name="volume_icon_size" type="double">
@@ -726,8 +726,8 @@
726726
<_name>Top Left</_name>
727727
</desc>
728728
<desc>
729-
<value>top-center</value>
730-
<_name>Top</_name>
729+
<value>top-center</value>
730+
<_name>Top</_name>
731731
</desc>
732732
<desc>
733733
<value>top-right</value>
@@ -764,7 +764,7 @@
764764
<default>default</default>
765765
</option>
766766
<option name="instant_unlock_always" type="bool">
767-
<_short>Always show</_short>
767+
<_short>Always show</_short>
768768
<default>false</default>
769769
</option>
770770
</group>

‎metadata/panel.xml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<_short>General</_short>
88
<option name="css_path" type="string">
99
<_short>CSS Path</_short>
10-
<default></default>
10+
<default/>
1111
</option>
1212
<option name="widgets_left" type="string">
1313
<_short>Widgets Left</_short>
@@ -28,7 +28,7 @@
2828
</option>
2929
<option name="center" type="bool">
3030
<_short>Center panel contents</_short>
31-
<_long>Ensure the panel’s contents are centered. Effectively:
31+
<_long>Ensure the panel&#x2019;s contents are centered. Effectively:
3232
If full_span is on, it will put the left and right widgets next to the center ones.
3333
If full_span is off, both sides of the panel will take the same amount of space, so that the center widgets are at the middle of the screen. This will lead to unused space on the side that has the least space taken up by the widgets.</_long>
3434
<default>false</default>
@@ -271,7 +271,7 @@
271271
<option name="menu_icon" type="string">
272272
<_short>Menu Icon</_short>
273273
<hint>file</hint>
274-
<default></default>
274+
<default/>
275275
</option>
276276
<option name="menu_icon_size" type="int">
277277
<_short>Menu Icon Size</_short>
@@ -322,7 +322,7 @@
322322
<option name="menu_logout_command" type="string">
323323
<_short>Menu Logout Command</_short>
324324
<_long>If not specified, a default logout interface will be used.</_long>
325-
<default></default>
325+
<default/>
326326
</option>
327327
<option name="logout_command" type="string">
328328
<_short>Logout Button Command</_short>

0 commit comments

Comments
 (0)