From e77c915843f2260684d7d95fbf4716e38908fa64 Mon Sep 17 00:00:00 2001 From: David Allison <62114487+david-allison@users.noreply.github.com> Date: Mon, 30 Sep 2024 17:08:50 +0100 Subject: [PATCH] lint: better link to Crowdin A Crowdin url was added in ad847571f6612eb428f33c0ae31244fbccbbb6e7 The URL is the most important aspect, but it's inconveniently placed due to the line length So put it on a newline ```diff - values-bn/01-core.xml:124: Error: should be 'JavaScript'; https://crowdin.com/editor/ankidroid/7290/en-bn#q=create_subdeck [TranslationTypo from com.ichi2.anki:lint-rules] + values-bn/01-core.xml:124: Error: should be 'JavaScript' + https://crowdin.com/editor/ankidroid/7290/en-bn#q=create_subdeck [TranslationTypo from com.ichi2.anki:lint-rules] ``` --- .../src/main/java/com/ichi2/anki/lint/rules/TranslationTypo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lint-rules/src/main/java/com/ichi2/anki/lint/rules/TranslationTypo.kt b/lint-rules/src/main/java/com/ichi2/anki/lint/rules/TranslationTypo.kt index 0c96b6a1ea46..c86d6aa73ad7 100644 --- a/lint-rules/src/main/java/com/ichi2/anki/lint/rules/TranslationTypo.kt +++ b/lint-rules/src/main/java/com/ichi2/anki/lint/rules/TranslationTypo.kt @@ -101,7 +101,7 @@ class TranslationTypo : ResourceXmlDetector(), XmlScanner { fun Element.reportIssue(message: String) { val elementToReport = this val crowdinEditUrl = crowdinContext?.getEditUrl(elementToReport) - ?.let { url -> "; $url" } ?: "" + ?.let { url -> "\n$url" } ?: "" context.report( issue = ISSUE, location = context.getElementLocation(elementToReport),