Skip to content

Commit

Permalink
fix: escape quotes in issue title
Browse files Browse the repository at this point in the history
  • Loading branch information
parth-deepsource committed Nov 10, 2023
1 parent df93bd2 commit b636b42
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1096.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Avoid wrapping fields in getters and setters just to be "safe"."
title: "Avoid wrapping fields in getters and setters just to be \"safe\"."
verbose_name: "unnecessary_getters_setters"
category: "antipattern"
weight: 70
Expand Down
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1104.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Provide a deprecation message, via @Deprecated("message")."
title: "Provide a deprecation message, via @Deprecated(\"message\")."
verbose_name: "provide_deprecation_message"
category: "antipattern"
weight: 70
Expand Down
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1213.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Avoid method calls or property accesses on a "dynamic" target."
title: "Avoid method calls or property accesses on a \"dynamic\" target."
verbose_name: "avoid_dynamic_calls"
category: "bug-risk"
weight: 70
Expand Down
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/utils/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def get_rule_title(self, contents: str) -> str | None:
for part in title_parts:
sanitized_parts.append(part.lstrip(CHARS_TO_LSTRIP).strip(CHARS_TO_STRIP))

return " ".join(sanitized_parts)
return " ".join(sanitized_parts).replace('"', r"\"")

def get_rule_description(self, contents: str) -> str | None:
"""
Expand Down

0 comments on commit b636b42

Please sign in to comment.