From 8890b69648eac5fb07a2799cf446d17171a5e3a6 Mon Sep 17 00:00:00 2001 From: TTOzzi Date: Sat, 15 Feb 2025 23:29:45 +0900 Subject: [PATCH] Modify PrettyPrinter to output diagnostics using shortened relative paths --- Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift b/Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift index 607364ee8..b8700014f 100644 --- a/Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift +++ b/Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift @@ -819,7 +819,7 @@ public class PrettyPrinter { context.findingEmitter.emit( message, category: category, - location: Finding.Location(file: context.fileURL.path, line: outputBuffer.lineNumber, column: column) + location: Finding.Location(file: context.fileURL.relativePath, line: outputBuffer.lineNumber, column: column) ) } }