@@ -550,8 +550,8 @@ def audit(endpoint: pf.Platform, audit_settings: types.ConfigSettings = None) ->
550550 return problems
551551
552552
553- def hierarchize_language (qp_list : dict [str , str ], endpoint : pf . Platform ) -> types .ObjectJsonRepr :
554- """Organizes a flat list of quality porfile in inheritance hierarchy"""
553+ def hierarchize_language (qp_list : dict [str , str ]) -> types .ObjectJsonRepr :
554+ """Organizes a flat list of quality profiles in inheritance hierarchy"""
555555 log .debug ("Organizing QP list %s in hierarchy" , str (qp_list .keys ()))
556556 hierarchy = qp_list .copy ()
557557 to_remove = []
@@ -570,7 +570,7 @@ def hierarchize_language(qp_list: dict[str, str], endpoint: pf.Platform) -> type
570570 return hierarchy
571571
572572
573- def hierarchize (qp_list : dict [ str , str ], endpoint : pf . Platform ) -> types .ObjectJsonRepr :
573+ def hierarchize (qp_list : types . ObjectJsonRepr ) -> types .ObjectJsonRepr :
574574 """Organize a flat list of QP in hierarchical (inheritance) fashion
575575
576576 :param qp_list: List of quality profiles
@@ -581,7 +581,7 @@ def hierarchize(qp_list: dict[str, str], endpoint: pf.Platform) -> types.ObjectJ
581581 log .info ("Organizing quality profiles in hierarchy" )
582582 hierarchy = {}
583583 for lang , lang_qp_list in qp_list .items ():
584- hierarchy [lang ] = hierarchize_language (lang_qp_list , endpoint )
584+ hierarchy [lang ] = hierarchize_language (lang_qp_list )
585585 return hierarchy
586586
587587
@@ -590,7 +590,6 @@ def export(
590590) -> types .ObjectJsonRepr :
591591 """Exports all or a list of quality profiles configuration as dict
592592
593- :param Platform endpoint: reference to the SonarQube platform
594593 :param ConfigSettings export_settings: Export parameters
595594 :param KeyList key_list: Unused
596595 :return: Dict of quality profiles JSON representation
@@ -606,7 +605,7 @@ def export(
606605 if lang not in qp_list :
607606 qp_list [lang ] = {}
608607 qp_list [lang ][name ] = json_data
609- qp_list = hierarchize (qp_list , endpoint )
608+ qp_list = hierarchize (qp_list )
610609 if write_q :
611610 write_q .put (qp_list )
612611 write_q .put (None )
0 commit comments