From 47e2d9d6233e58c00d4649aa4c834cb37f27c891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 25 Jan 2015 18:18:08 +0100 Subject: [PATCH] don't check auto-generated code --- OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs b/OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs index de5614d18b..cf936aab2b 100644 --- a/OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs +++ b/OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs @@ -32,7 +32,7 @@ namespace OpenRA.Mods.Common.UtilityCommands var console = new StyleCopConsole(null, false, null, null, true); 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.ViolationEncountered += OnViolationEncountered;