Skip to content

Commit b18f160

Browse files
committed
Pre-commit: format xml
1 parent 3742422 commit b18f160

15 files changed

+245
-254
lines changed

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ end_of_line = crlf
1313
insert_final_newline = true
1414
trim_trailing_whitespace = true
1515

16+
# XML Formatting Rules
17+
[*.resx]
18+
indent_size = 2
19+
20+
[*.svg]
21+
indent_size = 2
22+
1623
###############################
1724
# C# Formatting Rules #
1825
###############################

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ repos:
77
language: system
88
entry: dotnet format --include-generated --include
99
types_or: [ "c#", "vb" ]
10+
- repo: https://github.com/efrecon/pre-commit-hook-lxml
11+
rev: v0.1.4
12+
hooks:
13+
- id: format-xml

PasteIntoFile/PasteIntoFile.csproj

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import
4-
Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
5-
Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"
6-
/>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0" DefaultTargets="Build">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
74
<PropertyGroup>
85
<ProjectGuid>{F6F4215C-6CD7-4279-9C4C-C2DA9A823D0C}</ProjectGuid>
96
<OutputType>WinExe</OutputType>
@@ -16,7 +13,6 @@
1613
<ApplicationManifest>app.manifest</ApplicationManifest>
1714
<ApplicationIcon>Resources/icon.ico</ApplicationIcon>
1815
</PropertyGroup>
19-
2016
<!-- Build variants -->
2117
<PropertyGroup>
2218
<!-- Configuration: Debug, Release -->
@@ -48,7 +44,6 @@
4844
<PropertyGroup Condition="'$(Flavor)'=='Portable'">
4945
<DefineConstants>$(DefineConstants);PORTABLE</DefineConstants>
5046
</PropertyGroup>
51-
5247
<!-- Project components -->
5348
<ItemGroup>
5449
<PackageReference Include="BetterFolderBrowser" Version="1.2.0" />
@@ -160,13 +155,12 @@
160155
<EmbedInteropTypes>True</EmbedInteropTypes>
161156
</COMReference>
162157
</ItemGroup>
163-
164158
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
165-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
159+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
166160
Other similar extension points exist, see Microsoft.Common.targets.
167161
<Target Name="BeforeBuild">
168162
</Target>
169163
<Target Name="AfterBuild">
170164
</Target>
171165
-->
172-
</Project>
166+
</Project>

PasteIntoFile/Properties/Resources.de.resx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<root>
33
<!-- Microsoft ResX Schema Version 2.0 -->
44
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
5-
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
5+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
66
<xsd:element name="root" msdata:IsDataSet="true">
77
<xsd:complexType>
88
<xsd:choice maxOccurs="unbounded">
99
<xsd:element name="metadata">
1010
<xsd:complexType>
1111
<xsd:sequence>
12-
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
12+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
1313
</xsd:sequence>
14-
<xsd:attribute name="name" use="required" type="xsd:string"/>
15-
<xsd:attribute name="type" type="xsd:string"/>
16-
<xsd:attribute name="mimetype" type="xsd:string"/>
17-
<xsd:attribute ref="xml:space"/>
14+
<xsd:attribute name="name" use="required" type="xsd:string" />
15+
<xsd:attribute name="type" type="xsd:string" />
16+
<xsd:attribute name="mimetype" type="xsd:string" />
17+
<xsd:attribute ref="xml:space" />
1818
</xsd:complexType>
1919
</xsd:element>
2020
<xsd:element name="assembly">
2121
<xsd:complexType>
22-
<xsd:attribute name="alias" type="xsd:string"/>
23-
<xsd:attribute name="name" type="xsd:string"/>
22+
<xsd:attribute name="alias" type="xsd:string" />
23+
<xsd:attribute name="name" type="xsd:string" />
2424
</xsd:complexType>
2525
</xsd:element>
2626
<xsd:element name="data">
2727
<xsd:complexType>
2828
<xsd:sequence>
29-
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
30-
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
29+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
30+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
3131
</xsd:sequence>
32-
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
33-
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
34-
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
35-
<xsd:attribute ref="xml:space"/>
32+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
33+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
34+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
35+
<xsd:attribute ref="xml:space" />
3636
</xsd:complexType>
3737
</xsd:element>
3838
<xsd:element name="resheader">
3939
<xsd:complexType>
4040
<xsd:sequence>
41-
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
41+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
4242
</xsd:sequence>
43-
<xsd:attribute name="name" type="xsd:string" use="required"/>
43+
<xsd:attribute name="name" type="xsd:string" use="required" />
4444
</xsd:complexType>
4545
</xsd:element>
4646
</xsd:choice>
@@ -59,7 +59,7 @@
5959
<resheader name="writer">
6060
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
6161
</resheader>
62-
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
62+
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
6363
<!-- Data -->
6464
<data name="app_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
6565
<value>..\Resources\icon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral</value>
@@ -171,7 +171,7 @@ Tooltip</comment>
171171
<value>Abbrechen</value>
172172
</data>
173173
<data name="str_template_edit_info" xml:space="preserve">
174-
<value>Folgende Variablen stehen zur Verfügung:
174+
<value>Folgende Variablen stehen zur Verfügung:
175175
{0} Datum und Zeit
176176
{1} Zahl gespeicherter Dateien (Stapelverarbeitung)
177177
{2} Text in der Zwischenablage
@@ -301,12 +301,12 @@ Allows to keep application window always on top (in foreground of other windows)
301301
<value>Anfügen</value>
302302
</data>
303303
<data name="str_template_edit_subfolder_info" xml:space="preserve">
304-
<value>Die Unterordner-Vorlage wird bei gedrückter STRG Taste an den Zielordner angefügt. Absolute Pfade sind auch möglich und ersetzten den Zielordner.</value>
304+
<value>Die Unterordner-Vorlage wird bei gedrückter STRG Taste an den Zielordner angefügt. Absolute Pfade sind auch möglich und ersetzten den Zielordner.</value>
305305
</data>
306306
<data name="str_template_edit_filename_info" xml:space="preserve">
307-
<value>Die Dateinamen-Vorlage wird zum Formatieren des Standarddateinamens verwendet.</value>
307+
<value>Die Dateinamen-Vorlage wird zum Formatieren des Standarddateinamens verwendet.</value>
308308
</data>
309309
<data name="str_subfolder_template" xml:space="preserve">
310-
<value>Unterordner-Vorlage</value>
310+
<value>Unterordner-Vorlage</value>
311311
</data>
312312
</root>

PasteIntoFile/Properties/Resources.fr.resx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<root>
33
<!-- Microsoft ResX Schema Version 2.0 -->
44
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
5-
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
5+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
66
<xsd:element name="root" msdata:IsDataSet="true">
77
<xsd:complexType>
88
<xsd:choice maxOccurs="unbounded">
99
<xsd:element name="metadata">
1010
<xsd:complexType>
1111
<xsd:sequence>
12-
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
12+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
1313
</xsd:sequence>
14-
<xsd:attribute name="name" use="required" type="xsd:string"/>
15-
<xsd:attribute name="type" type="xsd:string"/>
16-
<xsd:attribute name="mimetype" type="xsd:string"/>
17-
<xsd:attribute ref="xml:space"/>
14+
<xsd:attribute name="name" use="required" type="xsd:string" />
15+
<xsd:attribute name="type" type="xsd:string" />
16+
<xsd:attribute name="mimetype" type="xsd:string" />
17+
<xsd:attribute ref="xml:space" />
1818
</xsd:complexType>
1919
</xsd:element>
2020
<xsd:element name="assembly">
2121
<xsd:complexType>
22-
<xsd:attribute name="alias" type="xsd:string"/>
23-
<xsd:attribute name="name" type="xsd:string"/>
22+
<xsd:attribute name="alias" type="xsd:string" />
23+
<xsd:attribute name="name" type="xsd:string" />
2424
</xsd:complexType>
2525
</xsd:element>
2626
<xsd:element name="data">
2727
<xsd:complexType>
2828
<xsd:sequence>
29-
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
30-
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
29+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
30+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
3131
</xsd:sequence>
32-
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
33-
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
34-
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
35-
<xsd:attribute ref="xml:space"/>
32+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
33+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
34+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
35+
<xsd:attribute ref="xml:space" />
3636
</xsd:complexType>
3737
</xsd:element>
3838
<xsd:element name="resheader">
3939
<xsd:complexType>
4040
<xsd:sequence>
41-
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
41+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
4242
</xsd:sequence>
43-
<xsd:attribute name="name" type="xsd:string" use="required"/>
43+
<xsd:attribute name="name" type="xsd:string" use="required" />
4444
</xsd:complexType>
4545
</xsd:element>
4646
</xsd:choice>
@@ -59,7 +59,7 @@
5959
<resheader name="writer">
6060
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
6161
</resheader>
62-
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
62+
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
6363
<!-- Data -->
6464
<data name="app_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
6565
<value>..\Resources\icon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral</value>

PasteIntoFile/Properties/Resources.it.resx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<root>
33
<!-- Microsoft ResX Schema Version 2.0 -->
44
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
5-
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
5+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
66
<xsd:element name="root" msdata:IsDataSet="true">
77
<xsd:complexType>
88
<xsd:choice maxOccurs="unbounded">
99
<xsd:element name="metadata">
1010
<xsd:complexType>
1111
<xsd:sequence>
12-
<xsd:element name="value" type="xsd:string" minOccurs="0"/>
12+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
1313
</xsd:sequence>
14-
<xsd:attribute name="name" use="required" type="xsd:string"/>
15-
<xsd:attribute name="type" type="xsd:string"/>
16-
<xsd:attribute name="mimetype" type="xsd:string"/>
17-
<xsd:attribute ref="xml:space"/>
14+
<xsd:attribute name="name" use="required" type="xsd:string" />
15+
<xsd:attribute name="type" type="xsd:string" />
16+
<xsd:attribute name="mimetype" type="xsd:string" />
17+
<xsd:attribute ref="xml:space" />
1818
</xsd:complexType>
1919
</xsd:element>
2020
<xsd:element name="assembly">
2121
<xsd:complexType>
22-
<xsd:attribute name="alias" type="xsd:string"/>
23-
<xsd:attribute name="name" type="xsd:string"/>
22+
<xsd:attribute name="alias" type="xsd:string" />
23+
<xsd:attribute name="name" type="xsd:string" />
2424
</xsd:complexType>
2525
</xsd:element>
2626
<xsd:element name="data">
2727
<xsd:complexType>
2828
<xsd:sequence>
29-
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
30-
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2"/>
29+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
30+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
3131
</xsd:sequence>
32-
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1"/>
33-
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3"/>
34-
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4"/>
35-
<xsd:attribute ref="xml:space"/>
32+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
33+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
34+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
35+
<xsd:attribute ref="xml:space" />
3636
</xsd:complexType>
3737
</xsd:element>
3838
<xsd:element name="resheader">
3939
<xsd:complexType>
4040
<xsd:sequence>
41-
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1"/>
41+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
4242
</xsd:sequence>
43-
<xsd:attribute name="name" type="xsd:string" use="required"/>
43+
<xsd:attribute name="name" type="xsd:string" use="required" />
4444
</xsd:complexType>
4545
</xsd:element>
4646
</xsd:choice>
@@ -59,7 +59,7 @@
5959
<resheader name="writer">
6060
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
6161
</resheader>
62-
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
62+
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
6363
<!-- Data -->
6464
<data name="app_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
6565
<value>..\Resources\icon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral</value>
@@ -172,7 +172,7 @@ Vuoi sovrascriverlo?</value>
172172
<value>Annulla</value>
173173
</data>
174174
<data name="str_template_edit_info" xml:space="preserve">
175-
<value>Sono supportate le seguenti variabili:
175+
<value>Sono supportate le seguenti variabili:
176176
{0} Data e ora
177177
{1} Salva conteggio in modalità batch
178178
{2} Testo appunti
@@ -302,12 +302,12 @@ Allows to keep application window always on top (in foreground of other windows)
302302
<value>Aggiungi</value>
303303
</data>
304304
<data name="str_template_edit_subfolder_info" xml:space="preserve">
305-
<value>Il modello di sottocartella viene aggiunto al percorso della cartella quando si esegue Incolla nel file con il tasto CTRL premuto. Anche i percorsi assoluti sono supportati e sostituiranno la cartella.</value>
305+
<value>Il modello di sottocartella viene aggiunto al percorso della cartella quando si esegue Incolla nel file con il tasto CTRL premuto. Anche i percorsi assoluti sono supportati e sostituiranno la cartella.</value>
306306
</data>
307307
<data name="str_template_edit_filename_info" xml:space="preserve">
308-
<value>Il modello viene utilizzato per formattare il nome del file.</value>
308+
<value>Il modello viene utilizzato per formattare il nome del file.</value>
309309
</data>
310310
<data name="str_subfolder_template" xml:space="preserve">
311-
<value>Modello sottocartella</value>
311+
<value>Modello sottocartella</value>
312312
</data>
313313
</root>

0 commit comments

Comments
 (0)