absolute path is not of relevance and only junking up the logs

This commit is contained in:
Matthias Mailänder
2015-01-02 18:40:05 +01:00
parent 1c90199fb0
commit 0f733d6b0d

View File

@@ -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);
}
}
}