aboutsummaryrefslogtreecommitdiff
path: root/src/wixcop/CommandLine/ConvertCommand.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2018-10-04 13:33:08 -0700
committerBob Arnson <bob@firegiant.com>2018-10-04 18:20:52 -0400
commit240f3594db6f633ece6818afd28dde1e1ef6b36c (patch)
treeab75f516217afa280944b2198a42c69b9a1b9cc0 /src/wixcop/CommandLine/ConvertCommand.cs
parent917bfd43985af3afaac0b3a1d97a89a58bde1f2f (diff)
downloadwix-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.cs21
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 @@
1using 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.
2using System.Collections.Generic; 2
3using System.IO; 3namespace WixToolset.Tools.WixCop.CommandLine
4using System.Linq;
5using System.Xml;
6using WixToolset.Extensibility.Data;
7using WixToolset.Extensibility.Services;
8
9namespace 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 {