Skip to content

Commit 0a37f3b

Browse files
author
Guy Acosta
committed
Adds missing argument for fixing TagTest and TagDiff commands from prior change to filters.
1 parent 94d840c commit 0a37f3b

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

AppInspector/Commands/AnalyzeCommand.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ public AnalyzeCommand(AnalyzeCommandOptions opts)
8181
_arg_confidenceFilters = opts.ConfidenceFilters;
8282
_arg_ignoreDefaultRules = opts.IgnoreDefaultRules;
8383
_arg_simpleTagsOnly = opts.SimpleTagsOnly;
84-
_fileExclusionList = opts.FilePathExclusions.Split(",").ToList<string>();
85-
if (_fileExclusionList.Contains("none") || _fileExclusionList.Contains("None"))
86-
_fileExclusionList.Clear();
87-
else
84+
85+
if (!string.IsNullOrEmpty(opts.FilePathExclusions))
8886
{
89-
for (int i = 0; i < _fileExclusionList.Count; i++)
90-
_fileExclusionList[i] = _fileExclusionList[i].ToLower();
87+
_fileExclusionList = opts.FilePathExclusions.ToLower().Split(",").ToList<string>();
88+
if (_fileExclusionList != null && (_fileExclusionList.Contains("none") || _fileExclusionList.Contains("None")))
89+
_fileExclusionList.Clear();
9190
}
91+
9292

9393
if (!Enum.TryParse(opts.ConsoleVerbosityLevel, true, out _arg_consoleVerbosityLevel))
9494
throw new OpException(String.Format(ErrMsg.FormatString(ErrMsg.ID.CMD_INVALID_ARG_VALUE, "-x")));

AppInspector/Commands/TagDiffCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public int Run()
9898
IgnoreDefaultRules = _arg_ignoreDefault,
9999
SimpleTagsOnly = true,
100100
AllowDupTags = false,
101+
FilePathExclusions = "sample,example,test,docs,.vs,.git",
101102
ConsoleVerbosityLevel = "None"
102103
});
103104
AnalyzeCommand cmd2 = new AnalyzeCommand(new AnalyzeCommandOptions
@@ -109,6 +110,7 @@ public int Run()
109110
IgnoreDefaultRules = _arg_ignoreDefault,
110111
SimpleTagsOnly = true,
111112
AllowDupTags = false,
113+
FilePathExclusions = "sample,example,test,docs,.vs,.git",
112114
ConsoleVerbosityLevel = "None"
113115
});
114116

AppInspector/Commands/TagTestCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public int Run()
132132
IgnoreDefaultRules = _arg_ignoreDefaultRules,
133133
SimpleTagsOnly = true,
134134
AllowDupTags = false,
135+
FilePathExclusions = "sample,example,test,docs,.vs,.git",
135136
ConsoleVerbosityLevel = "None"
136137
});
137138

AppInspector/Utils.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static public String DetectSolutionType(MatchRecord match)
9191
case ".htm":
9292
case ".html":
9393
case ".js":
94+
case ".ts":
9495
result = "Web.Application";
9596
break;
9697
case "powershell":

0 commit comments

Comments
 (0)