-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34b199c
commit 49aa722
Showing
2 changed files
with
63 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using StaticAnalysis.BreakingChangeAnalyzer; | ||
using StaticAnalysis.DependencyAnalyzer; | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
using Tools.Common.Issues; | ||
|
||
namespace StaticAnalysis | ||
{ | ||
public static class ReportRecordFactory | ||
{ | ||
public static IReportRecord Create(string type) | ||
{ | ||
if (type.Equals("BreakingChangeIssue")) | ||
{ | ||
return new BreakingChangeIssue(); | ||
} | ||
if (type.Equals("AssemblyVersionConflict")) | ||
{ | ||
return new AssemblyVersionConflict(); | ||
} | ||
if (type.Equals("SharedAssemblyConflict")) | ||
{ | ||
return new SharedAssemblyConflict(); | ||
} | ||
if (type.Equals("MissingAssembly")) | ||
{ | ||
return new MissingAssembly(); | ||
} | ||
if (type.Equals("ExtraAssembly")) | ||
{ | ||
return new ExtraAssembly(); | ||
} | ||
|
||
return null; | ||
} | ||
} | ||
} |