We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a904a41 commit db67ab3Copy full SHA for db67ab3
sonar/util/rule_helper.py
@@ -21,12 +21,12 @@
21
22
from typing import Any
23
from sonar import utilities
24
+from sonar.util import common_json_helper
25
26
27
def convert_rule_json(old_json: dict[str, Any]) -> dict[str, Any]:
- if "tags" in old_json:
28
- old_json["tags"] = utilities.list_to_csv(old_json["tags"])
29
- return old_json
+ """Converts a rule JSON from old to new export format"""
+ return common_json_helper.convert_common_fields(old_json)
30
31
32
def convert_rules_json(old_json: dict[str, Any]) -> dict[str, Any]:
0 commit comments