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