From b636b42c75513b77018ae2646fd71329d77dcb85 Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:51:13 +0530 Subject: [PATCH] fix: escape quotes in issue title --- analyzers/dart-analyze/.deepsource/issues/DRT-W1096.md | 2 +- analyzers/dart-analyze/.deepsource/issues/DRT-W1104.md | 2 +- analyzers/dart-analyze/.deepsource/issues/DRT-W1213.md | 2 +- analyzers/dart-analyze/utils/extractor.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/analyzers/dart-analyze/.deepsource/issues/DRT-W1096.md b/analyzers/dart-analyze/.deepsource/issues/DRT-W1096.md index 0643c64c..86405e84 100644 --- a/analyzers/dart-analyze/.deepsource/issues/DRT-W1096.md +++ b/analyzers/dart-analyze/.deepsource/issues/DRT-W1096.md @@ -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 diff --git a/analyzers/dart-analyze/.deepsource/issues/DRT-W1104.md b/analyzers/dart-analyze/.deepsource/issues/DRT-W1104.md index a976b9f4..77148f88 100644 --- a/analyzers/dart-analyze/.deepsource/issues/DRT-W1104.md +++ b/analyzers/dart-analyze/.deepsource/issues/DRT-W1104.md @@ -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 diff --git a/analyzers/dart-analyze/.deepsource/issues/DRT-W1213.md b/analyzers/dart-analyze/.deepsource/issues/DRT-W1213.md index 1333c8f5..944b878b 100644 --- a/analyzers/dart-analyze/.deepsource/issues/DRT-W1213.md +++ b/analyzers/dart-analyze/.deepsource/issues/DRT-W1213.md @@ -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 diff --git a/analyzers/dart-analyze/utils/extractor.py b/analyzers/dart-analyze/utils/extractor.py index bd483161..243d42e9 100644 --- a/analyzers/dart-analyze/utils/extractor.py +++ b/analyzers/dart-analyze/utils/extractor.py @@ -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: """