Skip to content

Commit c993be3

Browse files
Add file names to verbose output (#9)
1 parent d624b21 commit c993be3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Sources/SwiftTypeAdoptionReporter/FastStrategy.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ public class FastStrategy: Strategy {
4242
usageCount: usageCounts[type] ?? 0
4343
)
4444
}
45+
46+
if verbose {
47+
for type in types {
48+
guard let files = fileCounts[type] else { continue }
49+
50+
print("\(type) used in the following files:")
51+
files
52+
.map({ " \($0.pathString)" })
53+
.forEach { print($0) }
54+
}
55+
}
56+
4557
return typeUsages
4658
}
4759

0 commit comments

Comments
 (0)