Skip to content

Commit

Permalink
fix: print path to file as a relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
hauleth committed Sep 27, 2021
1 parent a28a339 commit 44264a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/mix/tasks/compile.unused.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44264a2

Please sign in to comment.