Skip to content

Commit 3175ba4

Browse files
authored
pre-commit trailing whitespace check more file types (#1255)
Only `.config` files were auto cleaned up
1 parent 6ff8800 commit 3175ba4

4 files changed

Lines changed: 25 additions & 25 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ repos:
5252
- id: trailing-whitespace
5353
name: run trailing-whitespace
5454
description: trims trailing whitespace
55-
files: \.(md|xml|ya?ml)$
55+
files: \.(bat|config|json|md|props|ps1|rdf|targets|tmpl|xml|ya?ml)$
5656
args: [--markdown-linebreak-ext=md]
5757
- id: check-case-conflict
5858
name: run check-case-conflict
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<!--
4-
Nunit-agent only runs under .NET 2.0 or higher.
5-
The setting useLegacyV2RuntimeActivationPolicy only applies
6-
under .NET 4.0 and permits use of mixed mode assemblies,
7-
which would otherwise not load correctly.
4+
Nunit-agent only runs under .NET 2.0 or higher.
5+
The setting useLegacyV2RuntimeActivationPolicy only applies
6+
under .NET 4.0 and permits use of mixed mode assemblies,
7+
which would otherwise not load correctly.
88
-->
99
<startup useLegacyV2RuntimeActivationPolicy="true">
1010
<!--
1111
Nunit-agent is normally run by the console or gui
12-
runners and not independently. In normal usage,
12+
runners and not independently. In normal usage,
1313
the runner specifies which runtime should be used.
14-
15-
Do NOT add any supportedRuntime elements here,
16-
since they may prevent the runner from controlling
14+
15+
Do NOT add any supportedRuntime elements here,
16+
since they may prevent the runner from controlling
1717
the runtime that is used!
1818
-->
1919
</startup>
@@ -26,5 +26,5 @@
2626
<loadFromRemoteSources enabled="true" />
2727

2828
</runtime>
29-
29+
3030
</configuration>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<!--
4-
Nunit-agent only runs under .NET 2.0 or higher.
5-
The setting useLegacyV2RuntimeActivationPolicy only applies
6-
under .NET 4.0 and permits use of mixed mode assemblies,
7-
which would otherwise not load correctly.
4+
Nunit-agent only runs under .NET 2.0 or higher.
5+
The setting useLegacyV2RuntimeActivationPolicy only applies
6+
under .NET 4.0 and permits use of mixed mode assemblies,
7+
which would otherwise not load correctly.
88
-->
99
<startup useLegacyV2RuntimeActivationPolicy="true">
1010
<!--
1111
Nunit-agent is normally run by the console or gui
12-
runners and not independently. In normal usage,
12+
runners and not independently. In normal usage,
1313
the runner specifies which runtime should be used.
14-
15-
Do NOT add any supportedRuntime elements here,
16-
since they may prevent the runner from controlling
14+
15+
Do NOT add any supportedRuntime elements here,
16+
since they may prevent the runner from controlling
1717
the runtime that is used!
1818
-->
1919
</startup>
@@ -26,5 +26,5 @@
2626
<loadFromRemoteSources enabled="true" />
2727

2828
</runtime>
29-
29+
3030
</configuration>
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<!--
4-
The console runner runs under .NET 2.0 or higher.
5-
The setting useLegacyV2RuntimeActivationPolicy only applies
6-
under .NET 4.0 and permits use of mixed mode assemblies,
4+
The console runner runs under .NET 2.0 or higher.
5+
The setting useLegacyV2RuntimeActivationPolicy only applies
6+
under .NET 4.0 and permits use of mixed mode assemblies,
77
which would otherwise not load correctly.
88
-->
99
<startup useLegacyV2RuntimeActivationPolicy="true">
@@ -12,13 +12,13 @@
1212
</startup>
1313

1414
<runtime>
15-
15+
1616
<!-- Ensure that test exceptions don't crash NUnit -->
1717
<legacyUnhandledExceptionPolicy enabled="1" />
1818

1919
<!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
2020
<loadFromRemoteSources enabled="true" />
21-
21+
2222
</runtime>
23-
23+
2424
</configuration>

0 commit comments

Comments
 (0)