Skip to content

Commit 6b517bf

Browse files
committed
Fixes #1369
1 parent 06d0dc7 commit 6b517bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sonar/components.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def migration_export(self, export_settings: types.ConfigSettings) -> dict[str, a
178178
loc_distrib = {m.split("=")[0]: int(m.split("=")[1]) for m in lang_distrib.split(";")}
179179
loc_distrib["total"] = self.loc()
180180
json_data["ncloc"] = loc_distrib
181+
json_data["analysisHistory"] = {r[0]: int(r[2]) for r in self.get_measures_history(["ncloc"])}
181182
if export_settings["SKIP_ISSUES"]:
182183
log.debug("Issues count extract skipped for %s`", str(self))
183184
return json_data
@@ -198,6 +199,7 @@ def migration_export(self, export_settings: types.ConfigSettings) -> dict[str, a
198199
"fixed": hotspot_count(self.endpoint, resolution=["FIXED"], **params),
199200
}
200201
log.debug("%s has these notable issues %s", str(self), str(json_data["issues"]))
202+
201203
return json_data
202204

203205
def get_measures(self, metrics_list: types.KeyList) -> dict[str, any]:

0 commit comments

Comments
 (0)