From 1c90199fb00cf6dffb6cc5bd5d7ee8fe982baecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Fri, 2 Jan 2015 18:39:29 +0100 Subject: [PATCH] one everything is fine per project is enough --- OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs b/OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs index b4c36881bf..5deb23fa2a 100644 --- a/OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs +++ b/OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs @@ -27,7 +27,8 @@ namespace OpenRA.Mods.Common.UtilityCommands [Desc("DIRECTORY", "Check the *.cs source code files in a directory for code style violations.")] public void Run(ModData modData, string[] args) { - var projectPath = Path.GetFullPath(args[1]); + var relativePath = args[1]; + var projectPath = Path.GetFullPath(relativePath); var console = new StyleCopConsole(null, false, null, null, true); var project = new CodeProject(0, projectPath, new Configuration(null)); @@ -39,6 +40,8 @@ namespace OpenRA.Mods.Common.UtilityCommands if (violationCount > 0) Environment.Exit(1); + else + Console.WriteLine("No violations encountered in {0}.".F(relativePath)); } void OnViolationEncountered(object sender, ViolationEventArgs e)