Skip to content

Commit 833e4bd

Browse files
committed
Use strings for array settings
1 parent a84441a commit 833e4bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sonar/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def to_json(self) -> types.ObjectJsonRepr:
335335
val = self.value
336336
if self.key == NEW_CODE_PERIOD:
337337
val = new_code_to_string(self.value)
338-
return {"key": self.key, "value": val, "isDefault": self.inherited}
338+
return {"key": self.key, "value": util.list_to_csv(val, separator=", ", check_for_separator=True), "isDefault": self.inherited}
339339

340340
def definition(self) -> Optional[dict[str, str]]:
341341
"""Returns the setting global definition"""

0 commit comments

Comments
 (0)