From 7a0889db91eab83c2808e907f9060ff177d5bc99 Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Thu, 29 Jan 2015 19:24:31 +0000 Subject: [PATCH 1/2] Ignore designer generated files during StyleCop checks. --- Settings.StyleCop | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Settings.StyleCop b/Settings.StyleCop index e5aa9112b0..0652af92b3 100644 --- a/Settings.StyleCop +++ b/Settings.StyleCop @@ -1,4 +1,11 @@ + + + + False + + + From 7ad58a3e3d09d3db4d59f88fa2d2d7397e951450 Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Thu, 29 Jan 2015 21:08:58 +0000 Subject: [PATCH 2/2] Revert "don't check auto-generated code" This reverts commit 47e2d9d6233e58c00d4649aa4c834cb37f27c891. --- 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 cf936aab2b..de5614d18b 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).Where(p => !p.Contains(".Designer"))) + foreach (var filePath in Directory.GetFiles(projectPath, "*.cs", SearchOption.AllDirectories)) console.Core.Environment.AddSourceCode(project, filePath, null); console.ViolationEncountered += OnViolationEncountered;