diff options
author | Rob Mensching <rob@firegiant.com> | 2018-10-04 13:33:08 -0700 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2018-10-04 18:20:52 -0400 |
commit | 240f3594db6f633ece6818afd28dde1e1ef6b36c (patch) | |
tree | ab75f516217afa280944b2198a42c69b9a1b9cc0 /src/wixcop/CommandLine/ConvertCommand.cs | |
parent | 917bfd43985af3afaac0b3a1d97a89a58bde1f2f (diff) | |
download | wix-240f3594db6f633ece6818afd28dde1e1ef6b36c.tar.gz wix-240f3594db6f633ece6818afd28dde1e1ef6b36c.tar.bz2 wix-240f3594db6f633ece6818afd28dde1e1ef6b36c.zip |
Fix WixCop namespaces and some C# modernization
Diffstat (limited to 'src/wixcop/CommandLine/ConvertCommand.cs')
-rw-r--r-- | src/wixcop/CommandLine/ConvertCommand.cs | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/wixcop/CommandLine/ConvertCommand.cs b/src/wixcop/CommandLine/ConvertCommand.cs index 6af7d4ca..ab7cd359 100644 --- a/src/wixcop/CommandLine/ConvertCommand.cs +++ b/src/wixcop/CommandLine/ConvertCommand.cs | |||
@@ -1,13 +1,14 @@ | |||
1 | using System; | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
2 | using System.Collections.Generic; | 2 | |
3 | using System.IO; | 3 | namespace WixToolset.Tools.WixCop.CommandLine |
4 | using System.Linq; | ||
5 | using System.Xml; | ||
6 | using WixToolset.Extensibility.Data; | ||
7 | using WixToolset.Extensibility.Services; | ||
8 | |||
9 | namespace WixCop.CommandLine | ||
10 | { | 4 | { |
5 | using System; | ||
6 | using System.Collections.Generic; | ||
7 | using System.IO; | ||
8 | using System.Xml; | ||
9 | using WixToolset.Extensibility.Data; | ||
10 | using WixToolset.Extensibility.Services; | ||
11 | |||
11 | internal class ConvertCommand : ICommandLineCommand | 12 | internal class ConvertCommand : ICommandLineCommand |
12 | { | 13 | { |
13 | private const string SettingsFileDefault = "wixcop.settings.xml"; | 14 | private const string SettingsFileDefault = "wixcop.settings.xml"; |
@@ -69,7 +70,7 @@ namespace WixCop.CommandLine | |||
69 | 70 | ||
70 | var errors = this.InspectSubDirectories(converter, Path.GetFullPath(".")); | 71 | var errors = this.InspectSubDirectories(converter, Path.GetFullPath(".")); |
71 | 72 | ||
72 | foreach (string searchPattern in this.SearchPatterns) | 73 | foreach (var searchPattern in this.SearchPatterns) |
73 | { | 74 | { |
74 | if (!this.SearchPatternResults.Contains(searchPattern)) | 75 | if (!this.SearchPatternResults.Contains(searchPattern)) |
75 | { | 76 | { |