From 44264a2b30e91b038194fd7fa2d43f2ba0740947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Niemier?= Date: Mon, 27 Sep 2021 14:57:16 +0200 Subject: [PATCH] fix: print path to file as a relative path --- lib/mix/tasks/compile.unused.ex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/mix/tasks/compile.unused.ex b/lib/mix/tasks/compile.unused.ex index 048a313..d8c781c 100644 --- a/lib/mix/tasks/compile.unused.ex +++ b/lib/mix/tasks/compile.unused.ex @@ -142,9 +142,10 @@ defmodule Mix.Tasks.Compile.Unused do level(diag.severity), diag.message, "\n ", - diag.file, + Path.relative_to_cwd(diag.file), ?:, - Integer.to_string(diag.position) + Integer.to_string(diag.position), + "\n" ]) diag