Skip to content

Commit cfdddd2

Browse files
committed
add full path to json report
This is just a quick pr to expose the full path of the class file through the json report. This could be helpful if a project has more than one class with the same name
1 parent 3aea678 commit cfdddd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

refactor-first-maven-plugin/src/main/java/org/hjug/mavenreport/RefactorFirstJsonReport/JsonReportDisharmonyEntry.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class JsonReportDisharmonyEntry {
2929

3030
private final String mostRecentCommitTime;
3131

32+
private final String fullPath;
33+
3234
public static JsonReportDisharmonyEntry fromRankedDisharmony(RankedDisharmony entry) {
3335
return JsonReportDisharmonyEntry.builder()
3436
.className(entry.getClassName())
@@ -38,6 +40,7 @@ public static JsonReportDisharmonyEntry fromRankedDisharmony(RankedDisharmony en
3840
.weightedMethodCount(entry.getWmc())
3941
.commitCount(entry.getCommitCount())
4042
.mostRecentCommitTime(formatter.format(entry.getMostRecentCommitTime()))
43+
.fullPath(entry.getPath())
4144
.build();
4245
}
4346
}

0 commit comments

Comments
 (0)