From 0f733d6b0df901b9ed8d2a50864dab8d95e6b093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Fri, 2 Jan 2015 18:40:05 +0100 Subject: [PATCH] absolute path is not of relevance and only junking up the logs --- OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs b/OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs index 5deb23fa2a..202c9efd1b 100644 --- a/OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs +++ b/OpenRA.Mods.Common/UtilityCommands/CheckCodeStyle.cs @@ -47,7 +47,8 @@ namespace OpenRA.Mods.Common.UtilityCommands void OnViolationEncountered(object sender, ViolationEventArgs e) { violationCount++; - Console.WriteLine("{0}:L{1}: [{2}] {3}", e.SourceCode.Path, e.LineNumber, e.Violation.Rule.CheckId, e.Message); + var path = e.SourceCode.Path.Replace(Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar, ""); + Console.WriteLine("{0}:L{1}: [{2}] {3}", path, e.LineNumber, e.Violation.Rule.CheckId, e.Message); } } }