Skip to content

Commit 3df9a93

Browse files
committed
Documentation: include feedback URLs and better XML suppress help
1 parent 1a6c405 commit 3df9a93

File tree

452 files changed

+2423
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

452 files changed

+2423
-226
lines changed

docs/checks/AaptCrash.md.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
: Android
1919
Vendor
2020
: Android Open Source Project
21+
Feedback
22+
: https://issuetracker.google.com/issues/new?component=192708
2123
Affects
2224
: Resource files
2325
Editing
@@ -80,7 +82,16 @@
8082
problematic XML element (or one of its enclosing elements). You may
8183
also need to add the following namespace declaration on the root
8284
element in the XML file if it's not already there:
83-
`xmlns:tools="http://schemas.android.com/tools"`
85+
`xmlns:tools="http://schemas.android.com/tools"`.
86+
87+
```xml
88+
<?xml version="1.0" encoding="UTF-8"?>
89+
<resources xmlns:tools="http://schemas.android.com/tools">
90+
...
91+
<include tools:ignore="AaptCrash" .../>
92+
...
93+
</resources>
94+
```
8495

8596
* Using a special `lint.xml` file in the source tree which turns off
8697
the check in that folder and any sub folder. A simple file might look

docs/checks/AcceptsUserCertificates.md.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Resource files
2123
Editing
@@ -80,7 +82,7 @@
8082
element (or one of its enclosing elements). You may also need to add
8183
the following namespace declaration on the root element in the XML
8284
file if it's not already there:
83-
`xmlns:tools="http://schemas.android.com/tools"`
85+
`xmlns:tools="http://schemas.android.com/tools"`.
8486

8587
* Using a special `lint.xml` file in the source tree which turns off
8688
the check in that folder and any sub folder. A simple file might look

docs/checks/AccidentalOctal.md.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Any
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Gradle build files
2123
Editing

docs/checks/AdapterViewChildren.md.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Resource files
2123
Editing
@@ -78,7 +80,15 @@
7880
(or one of its enclosing elements). You may also need to add the
7981
following namespace declaration on the root element in the XML file
8082
if it's not already there:
81-
`xmlns:tools="http://schemas.android.com/tools"`
83+
`xmlns:tools="http://schemas.android.com/tools"`.
84+
85+
```xml
86+
<?xml version="1.0" encoding="UTF-8"?>
87+
<ScrollView xmlns:tools="http://schemas.android.com/tools"
88+
tools:ignore="AdapterViewChildren" ...>
89+
...
90+
</ScrollView>
91+
```
8292

8393
* Using a special `lint.xml` file in the source tree which turns off
8494
the check in that folder and any sub folder. A simple file might look

docs/checks/AddJavascriptInterface.md.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Kotlin and Java files
2123
Editing

docs/checks/AllCaps.md.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Resource files
2123
Editing

docs/checks/AllowAllHostnameVerifier.md.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Kotlin and Java files
2123
Editing

docs/checks/AllowBackup.md.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Manifest files
2123
Editing
@@ -106,7 +108,16 @@
106108
problematic XML element (or one of its enclosing elements). You may
107109
also need to add the following namespace declaration on the root
108110
element in the XML file if it's not already there:
109-
`xmlns:tools="http://schemas.android.com/tools"`
111+
`xmlns:tools="http://schemas.android.com/tools"`.
112+
113+
```xml
114+
<?xml version="1.0" encoding="UTF-8"?>
115+
<manifest xmlns:tools="http://schemas.android.com/tools">
116+
...
117+
<application tools:ignore="AllowBackup" .../>
118+
...
119+
</manifest>
120+
```
110121

111122
* Using a special `lint.xml` file in the source tree which turns off
112123
the check in that folder and any sub folder. A simple file might look

docs/checks/AlwaysShowAction.md.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Kotlin and Java files and resource files
2123
Editing
@@ -142,7 +144,7 @@
142144
on the problematic XML element (or one of its enclosing elements).
143145
You may also need to add the following namespace declaration on the
144146
root element in the XML file if it's not already there:
145-
`xmlns:tools="http://schemas.android.com/tools"`
147+
`xmlns:tools="http://schemas.android.com/tools"`.
146148

147149
* Using a suppression annotation like this on the enclosing
148150
element:

docs/checks/AndroidGradlePluginVersion.md.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Gradle build files
2123
Editing

docs/checks/AnimatorKeep.md.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Kotlin and Java files and resource files
2123
Editing
@@ -200,7 +202,15 @@
200202
the problematic XML element (or one of its enclosing elements). You
201203
may also need to add the following namespace declaration on the root
202204
element in the XML file if it's not already there:
203-
`xmlns:tools="http://schemas.android.com/tools"`
205+
`xmlns:tools="http://schemas.android.com/tools"`.
206+
207+
```xml
208+
<?xml version="1.0" encoding="UTF-8"?>
209+
<android.support.constraint.motion.MotionLayout xmlns:tools="http://schemas.android.com/tools"
210+
tools:ignore="AnimatorKeep" ...>
211+
...
212+
</android.support.constraint.motion.MotionLayout>
213+
```
204214

205215
* Using a special `lint.xml` file in the source tree which turns off
206216
the check in that folder and any sub folder. A simple file might look

docs/checks/AnnotateVersionCheck.md.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Kotlin and Java files
2123
Editing

docs/checks/AnnotationProcessorOnCompilePath.md.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Gradle build files
2123
Editing

docs/checks/AppCompatCustomView.md.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Kotlin and Java files
2123
Editing

docs/checks/AppCompatMethod.md.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Kotlin and Java files
2123
Editing

docs/checks/AppCompatResource.md.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Resource files
2123
Editing
@@ -80,7 +82,7 @@
8082
on the problematic XML element (or one of its enclosing elements).
8183
You may also need to add the following namespace declaration on the
8284
root element in the XML file if it's not already there:
83-
`xmlns:tools="http://schemas.android.com/tools"`
85+
`xmlns:tools="http://schemas.android.com/tools"`.
8486

8587
* Using a special `lint.xml` file in the source tree which turns off
8688
the check in that folder and any sub folder. A simple file might look

docs/checks/AppIndexingService.md.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Manifest files
2123
Editing
@@ -84,7 +86,16 @@
8486
on the problematic XML element (or one of its enclosing elements).
8587
You may also need to add the following namespace declaration on the
8688
root element in the XML file if it's not already there:
87-
`xmlns:tools="http://schemas.android.com/tools"`
89+
`xmlns:tools="http://schemas.android.com/tools"`.
90+
91+
```xml
92+
<?xml version="1.0" encoding="UTF-8"?>
93+
<manifest xmlns:tools="http://schemas.android.com/tools">
94+
...
95+
<application tools:ignore="AppIndexingService" .../>
96+
...
97+
</manifest>
98+
```
8899

89100
* Using a special `lint.xml` file in the source tree which turns off
90101
the check in that folder and any sub folder. A simple file might look

docs/checks/AppLinkUrlError.md.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Manifest files
2123
Editing
@@ -85,7 +87,16 @@
8587
the problematic XML element (or one of its enclosing elements). You
8688
may also need to add the following namespace declaration on the root
8789
element in the XML file if it's not already there:
88-
`xmlns:tools="http://schemas.android.com/tools"`
90+
`xmlns:tools="http://schemas.android.com/tools"`.
91+
92+
```xml
93+
<?xml version="1.0" encoding="UTF-8"?>
94+
<manifest xmlns:tools="http://schemas.android.com/tools">
95+
...
96+
<activity tools:ignore="AppLinkUrlError" .../>
97+
...
98+
</manifest>
99+
```
89100

90101
* Using a special `lint.xml` file in the source tree which turns off
91102
the check in that folder and any sub folder. A simple file might look

docs/checks/AppLinksAutoVerify.md.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
: Android
2323
Vendor
2424
: Android Open Source Project
25+
Feedback
26+
: https://issuetracker.google.com/issues/new?component=192708
2527
Affects
2628
: Manifest files
2729
Editing
@@ -92,7 +94,7 @@
9294
on the problematic XML element (or one of its enclosing elements).
9395
You may also need to add the following namespace declaration on the
9496
root element in the XML file if it's not already there:
95-
`xmlns:tools="http://schemas.android.com/tools"`
97+
`xmlns:tools="http://schemas.android.com/tools"`.
9698

9799
* Using a special `lint.xml` file in the source tree which turns off
98100
the check in that folder and any sub folder. A simple file might look

docs/checks/ApplySharedPref.md.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Kotlin and Java files
2123
Editing

docs/checks/AuthLeak.md.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Kotlin and Java files
2123
Editing

docs/checks/Autofill.md.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
: Android
1717
Vendor
1818
: Android Open Source Project
19+
Feedback
20+
: https://issuetracker.google.com/issues/new?component=192708
1921
Affects
2022
: Resource files
2123
Editing
@@ -98,7 +100,15 @@
98100
problematic XML element (or one of its enclosing elements). You may
99101
also need to add the following namespace declaration on the root
100102
element in the XML file if it's not already there:
101-
`xmlns:tools="http://schemas.android.com/tools"`
103+
`xmlns:tools="http://schemas.android.com/tools"`.
104+
105+
```xml
106+
<?xml version="1.0" encoding="UTF-8"?>
107+
<EditText xmlns:tools="http://schemas.android.com/tools"
108+
tools:ignore="Autofill" ...>
109+
...
110+
</EditText>
111+
```
102112

103113
* Using a special `lint.xml` file in the source tree which turns off
104114
the check in that folder and any sub folder. A simple file might look

docs/checks/BackButton.md.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
: Android
1919
Vendor
2020
: Android Open Source Project
21+
Feedback
22+
: https://issuetracker.google.com/issues/new?component=192708
2123
Affects
2224
: Resource files
2325
Editing
@@ -263,7 +265,16 @@
263265
problematic XML element (or one of its enclosing elements). You may
264266
also need to add the following namespace declaration on the root
265267
element in the XML file if it's not already there:
266-
`xmlns:tools="http://schemas.android.com/tools"`
268+
`xmlns:tools="http://schemas.android.com/tools"`.
269+
270+
```xml
271+
<?xml version="1.0" encoding="UTF-8"?>
272+
<resources xmlns:tools="http://schemas.android.com/tools">
273+
...
274+
<Button tools:ignore="BackButton" .../>
275+
...
276+
</resources>
277+
```
267278

268279
* Using a special `lint.xml` file in the source tree which turns off
269280
the check in that folder and any sub folder. A simple file might look

docs/checks/BadConfigurationProvider.md.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
: Android
1919
Vendor
2020
: Android Open Source Project (androidx.work.lint.workmanager)
21+
Identifier
22+
: androidx.work.lint.workmanager
23+
Feedback
24+
: https://issuetracker.google.com/issues/new?component=192731
2125
Affects
2226
: Kotlin and Java files
2327
Editing

0 commit comments

Comments
 (0)