Skip to content

Commit e53a649

Browse files
Add lint base xml file for string.xml files
Fixing lint errors in the string.xml files makes no sense because these are overridden with the next automated string import. Adding a lint-baseline.xml instead for the ui module. See https://issuetracker.google.com/208178382 #minor-release PiperOrigin-RevId: 455354304 (cherry picked from commit 61ab75b)
1 parent 36b976f commit e53a649

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

libraries/ui/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ apply from: "$gradle.ext.androidxMediaSettingsDir/common_library_config.gradle"
1515

1616
android.buildTypes.debug.testCoverageEnabled true
1717

18+
android {
19+
lint {
20+
baseline = file("lint-baseline.xml")
21+
}
22+
}
23+
1824
dependencies {
1925
implementation project(modulePrefix + 'lib-common')
2026
implementation 'androidx.media:media:' + androidxMediaVersion

libraries/ui/lint-baseline.xml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- Copyright (C) 2022 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
<issues format="6" by="lint 7.2.1" type="baseline" client="gradle" dependencies="false" name="AGP (7.2.1)" variant="all" version="7.2.1">
17+
18+
<issue
19+
id="MissingQuantity"
20+
message="For locale &quot;fr&quot; (French) the following quantities should also be defined: `many`"
21+
errorLine1=" &lt;plurals name=&quot;exo_controls_rewind_by_amount_description&quot;>"
22+
errorLine2=" ^">
23+
<location
24+
file="src/main/res/values-fr-rCA/strings.xml"
25+
line="31"
26+
column="3"/>
27+
</issue>
28+
29+
<issue
30+
id="MissingQuantity"
31+
message="For locale &quot;fr&quot; (French) the following quantities should also be defined: `many`"
32+
errorLine1=" &lt;plurals name=&quot;exo_controls_rewind_by_amount_description&quot;>"
33+
errorLine2=" ^">
34+
<location
35+
file="src/main/res/values-fr/strings.xml"
36+
line="31"
37+
column="3"/>
38+
</issue>
39+
40+
<issue
41+
id="MissingQuantity"
42+
message="For locale &quot;fr&quot; (French) the following quantities should also be defined: `many`"
43+
errorLine1=" &lt;plurals name=&quot;exo_controls_fastforward_by_amount_description&quot;>"
44+
errorLine2=" ^">
45+
<location
46+
file="src/main/res/values-fr-rCA/strings.xml"
47+
line="36"
48+
column="3"/>
49+
</issue>
50+
51+
<issue
52+
id="MissingQuantity"
53+
message="For locale &quot;fr&quot; (French) the following quantities should also be defined: `many`"
54+
errorLine1=" &lt;plurals name=&quot;exo_controls_fastforward_by_amount_description&quot;>"
55+
errorLine2=" ^">
56+
<location
57+
file="src/main/res/values-fr/strings.xml"
58+
line="36"
59+
column="3"/>
60+
</issue>
61+
62+
</issues>

0 commit comments

Comments
 (0)