Files
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

71 lines
3.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 7.2.2" type="baseline" client="gradle" dependencies="false" name="AGP (7.2.2)" variant="all" version="7.2.2">
<issue
id="SimpleDateFormat"
message="To get local formatting use `getDateInstance()`, `getDateTimeInstance()`, or `getTimeInstance()`, or use `new SimpleDateFormat(String template, Locale locale)` with for example `Locale.US` for ASCII dates."
errorLine1=" .run { SimpleDateFormat(PATTERN_FORMATTER_DAYS).parse(this) }"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/duckduckgo/app/global/formatters/time/TimeDiffFormatter.kt"
line="85"
column="20"/>
</issue>
<issue
id="SimpleDateFormat"
message="To get local formatting use `getDateInstance()`, `getDateTimeInstance()`, or `getTimeInstance()`, or use `new SimpleDateFormat(String template, Locale locale)` with for example `Locale.US` for ASCII dates."
errorLine1=" .run { SimpleDateFormat(PATTERN_FORMATTER_DAYS).parse(this) }"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/duckduckgo/app/global/formatters/time/TimeDiffFormatter.kt"
line="87"
column="20"/>
</issue>
<issue
id="SimpleDateFormat"
message="To get local formatting use `getDateInstance()`, `getDateTimeInstance()`, or `getTimeInstance()`, or use `new SimpleDateFormat(String template, Locale locale)` with for example `Locale.US` for ASCII dates."
errorLine1=" .run { SimpleDateFormat(PATTERN_FORMATTER_DAYS).parse(this) }"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/duckduckgo/app/global/formatters/time/TimeDiffFormatter.kt"
line="104"
column="20"/>
</issue>
<issue
id="SimpleDateFormat"
message="To get local formatting use `getDateInstance()`, `getDateTimeInstance()`, or `getTimeInstance()`, or use `new SimpleDateFormat(String template, Locale locale)` with for example `Locale.US` for ASCII dates."
errorLine1=" .run { SimpleDateFormat(PATTERN_FORMATTER_DAYS).parse(this) }"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/duckduckgo/app/global/formatters/time/TimeDiffFormatter.kt"
line="106"
column="20"/>
</issue>
<issue
id="SimpleDateFormat"
message="To get local formatting use `getDateInstance()`, `getDateTimeInstance()`, or `getTimeInstance()`, or use `new SimpleDateFormat(String template, Locale locale)` with for example `Locale.US` for ASCII dates."
errorLine1=" private val FORMATTER_DAYS = SimpleDateFormat(&quot;yyyy-MM-dd&quot;)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/duckduckgo/app/global/formatters/time/TimeDiffFormatter.kt"
line="117"
column="38"/>
</issue>
<issue
id="PluralsCandidate"
message="Formatting %d followed by words (&quot;days&quot;): This should probably be a plural rather than a string"
errorLine1=" &lt;string name=&quot;common_DaysAgo&quot; instruction=&quot;Placeholder is the number of days&quot;>%1$d days ago&lt;/string>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/values/strings-common.xml"
line="22"
column="5"/>
</issue>
</issues>