Skip to content

Commit a238278

Browse files
committed
Remove more convert_for_yaml()
1 parent f780229 commit a238278

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

sonar/projects.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,14 +1696,3 @@ def import_zips(endpoint: pf.Platform, project_list: list[str], threads: int = 2
16961696
log.info("%d/%d imports (%d%%) - Latest: %s - %s", i, nb_projects, int(i * 100 / nb_projects), proj_key, status)
16971697
log.info("%s", ", ".join([f"{k}:{v}" for k, v in statuses_count.items()]))
16981698
return statuses
1699-
1700-
1701-
def convert_proj_for_yaml(proj_json: types.ObjectJsonRepr) -> types.ObjectJsonRepr:
1702-
"""Convert the original JSON defined for JSON export into a JSON format more adapted for YAML export"""
1703-
if "branches" in proj_json:
1704-
proj_json["branches"] = util.dict_to_list(proj_json["branches"], "name")
1705-
if "qualityProfiles" in proj_json:
1706-
proj_json["qualityProfiles"] = util.dict_to_list(proj_json["qualityProfiles"], "language", "name")
1707-
if "permissions" in proj_json:
1708-
proj_json["permissions"] = convert_for_yaml(proj_json["permissions"])
1709-
return proj_json

0 commit comments

Comments
 (0)