don't check auto-generated code
This commit is contained in:
@@ -32,7 +32,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
|
|
||||||
var console = new StyleCopConsole(null, false, null, null, true);
|
var console = new StyleCopConsole(null, false, null, null, true);
|
||||||
var project = new CodeProject(0, projectPath, new Configuration(null));
|
var project = new CodeProject(0, projectPath, new Configuration(null));
|
||||||
foreach (var filePath in Directory.GetFiles(projectPath, "*.cs", SearchOption.AllDirectories))
|
foreach (var filePath in Directory.GetFiles(projectPath, "*.cs", SearchOption.AllDirectories).Where(p => !p.Contains(".Designer")))
|
||||||
console.Core.Environment.AddSourceCode(project, filePath, null);
|
console.Core.Environment.AddSourceCode(project, filePath, null);
|
||||||
|
|
||||||
console.ViolationEncountered += OnViolationEncountered;
|
console.ViolationEncountered += OnViolationEncountered;
|
||||||
|
|||||||
Reference in New Issue
Block a user