Skip to content

Commit 478dd02

Browse files
Not required IgnoredProjects
1 parent df4c434 commit 478dd02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MetricsExtractor/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private static List<string> GetProjectsPath(MetricConfiguration metricConfigurat
153153
var solutionLines = File.ReadLines(metricConfiguration.Solution).Where(l => l.StartsWith("Project")).ToList();
154154

155155
const string STR_REGEX = @"Project\(""\{[\w-]+\}""\) = ""(?<name>[\w.]+)"", ""(?<path>.+\.csproj?)"", ""\{[\w-]+\}";
156-
var ignorageWords = metricConfiguration.IgnoredProjects;
156+
var ignorageWords = metricConfiguration.IgnoredProjects ?? Enumerable.Empty<string>();
157157
var projectsName = (from solutionLine in solutionLines
158158
let match = Regex.Match(solutionLine, STR_REGEX)
159159
let projectPath = match.Groups["path"].Value

0 commit comments

Comments
 (0)