Skip to content

Commit 149982f

Browse files
committed
Update lint check documentation
1 parent 9e7779e commit 149982f

File tree

279 files changed

+5318
-2882
lines changed

Some content is hidden

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

279 files changed

+5318
-2882
lines changed

docs/checks/AppLinksAutoVerify.md.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
See
3232
: https://g.co/appindexing/applinks
3333
Implementation
34-
: [Source Code](https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/AppLinksAutoVerifyDetector.java)
34+
: [Source Code](https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/AppLinksAutoVerifyDetector.kt)
3535
Tests
36-
: [Source Code](https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/AppLinksAutoVerifyDetectorTest.java)
36+
: [Source Code](https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/AppLinksAutoVerifyDetectorTest.kt)
3737
Copyright Year
3838
: 2015
3939

@@ -43,12 +43,12 @@
4343

4444
Here is an example of lint warnings produced by this check:
4545
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text
46-
AndroidManifest.xml:12:Error: This host does not support app links to
47-
your app. Checks the Digital Asset Links JSON file:
48-
http://example.com/.well-known/assetlinks.json [AppLinksAutoVerify]
46+
AndroidManifest.xml:12:Warning: HTTP request for Digital Asset Links
47+
JSON file https://links.dropbox.com/.well-known/assetlinks.json fails.
48+
HTTP response code: 301 [AppLinksAutoVerify]
4949

50-
android:host="example.com"
51-
--------------------------
50+
android:host="links.dropbox.com"
51+
--------------------------------
5252
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5353

5454
Here is the source file referenced above:
@@ -57,7 +57,7 @@
5757
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~xml linenumbers
5858
<?xml version="1.0" encoding="utf-8"?>
5959
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
60-
package="com.example.helloworld" >
60+
package="com.dropbox.links" >
6161

6262
<application
6363
android:allowBackup="true"
@@ -66,7 +66,7 @@
6666
<intent-filter android:autoVerify="true">
6767
<action android:name="android.intent.action.VIEW" />
6868
<data android:scheme="http"
69-
android:host="example.com"
69+
android:host="links.dropbox.com"
7070
android:pathPrefix="/gizmos" />
7171
<category android:name="android.intent.category.DEFAULT" />
7272
<category android:name="android.intent.category.BROWSABLE" />
@@ -78,11 +78,11 @@
7878
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7979

8080
You can also visit the
81-
[source code](https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/AppLinksAutoVerifyDetectorTest.java)
81+
[source code](https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/AppLinksAutoVerifyDetectorTest.kt)
8282
for the unit tests for this check to see additional scenarios.
8383

8484
The above example was automatically extracted from the first unit test
85-
found for this lint check, `AppLinksAutoVerifyDetector.testInvalidPackage`.
85+
found for this lint check, `AppLinksAutoVerifyDetector.testRedirect`.
8686
To report a problem with this extracted sample, visit
8787
https://issuetracker.google.com/issues/new?component=192708.
8888

docs/checks/ArcAnimationSpecTypeIssue.md.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,25 +103,25 @@
103103

104104
```
105105
// build.gradle.kts
106-
implementation("androidx.compose.animation:animation-core-android:1.7.0-alpha01")
106+
implementation("androidx.compose.animation:animation-core-android:1.7.0-beta01")
107107

108108
// build.gradle
109-
implementation 'androidx.compose.animation:animation-core-android:1.7.0-alpha01'
109+
implementation 'androidx.compose.animation:animation-core-android:1.7.0-beta01'
110110

111111
// build.gradle.kts with version catalogs:
112112
implementation(libs.animation-core-android)
113113

114114
# libs.versions.toml
115115
[versions]
116-
animation-core-android = "1.7.0-alpha01"
116+
animation-core-android = "1.7.0-beta01"
117117
[libraries]
118118
animation-core-android = {
119119
module = "androidx.compose.animation:animation-core-android",
120120
version.ref = "animation-core-android"
121121
}
122122
```
123123

124-
1.7.0-alpha01 is the version this documentation was generated from;
124+
1.7.0-beta01 is the version this documentation was generated from;
125125
there may be newer versions available.
126126

127127
[Additional details about androidx.compose.animation:animation-core-android](androidx_compose_animation_animation-core-android.md.html).

docs/checks/ArgInFormattedQuantityStringRes.md.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,25 +92,25 @@
9292

9393
```
9494
// build.gradle.kts
95-
lintChecks("com.slack.lint:slack-lint-checks:0.7.0")
95+
lintChecks("com.slack.lint:slack-lint-checks:0.7.3")
9696

9797
// build.gradle
98-
lintChecks 'com.slack.lint:slack-lint-checks:0.7.0'
98+
lintChecks 'com.slack.lint:slack-lint-checks:0.7.3'
9999

100100
// build.gradle.kts with version catalogs:
101101
lintChecks(libs.slack-lint-checks)
102102

103103
# libs.versions.toml
104104
[versions]
105-
slack-lint-checks = "0.7.0"
105+
slack-lint-checks = "0.7.3"
106106
[libraries]
107107
slack-lint-checks = {
108108
module = "com.slack.lint:slack-lint-checks",
109109
version.ref = "slack-lint-checks"
110110
}
111111
```
112112

113-
0.7.0 is the version this documentation was generated from;
113+
0.7.3 is the version this documentation was generated from;
114114
there may be newer versions available.
115115

116116
[Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html).

docs/checks/AutoboxingStateCreation.md.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,25 +95,25 @@
9595

9696
```
9797
// build.gradle.kts
98-
implementation("androidx.compose.runtime:runtime-android:1.7.0-alpha01")
98+
implementation("androidx.compose.runtime:runtime-android:1.7.0-beta01")
9999

100100
// build.gradle
101-
implementation 'androidx.compose.runtime:runtime-android:1.7.0-alpha01'
101+
implementation 'androidx.compose.runtime:runtime-android:1.7.0-beta01'
102102

103103
// build.gradle.kts with version catalogs:
104104
implementation(libs.runtime-android)
105105

106106
# libs.versions.toml
107107
[versions]
108-
runtime-android = "1.7.0-alpha01"
108+
runtime-android = "1.7.0-beta01"
109109
[libraries]
110110
runtime-android = {
111111
module = "androidx.compose.runtime:runtime-android",
112112
version.ref = "runtime-android"
113113
}
114114
```
115115

116-
1.7.0-alpha01 is the version this documentation was generated from;
116+
1.7.0-beta01 is the version this documentation was generated from;
117117
there may be newer versions available.
118118

119119
[Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html).

docs/checks/AutoboxingStateValueProperty.md.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,25 +90,25 @@
9090

9191
```
9292
// build.gradle.kts
93-
implementation("androidx.compose.runtime:runtime-android:1.7.0-alpha01")
93+
implementation("androidx.compose.runtime:runtime-android:1.7.0-beta01")
9494

9595
// build.gradle
96-
implementation 'androidx.compose.runtime:runtime-android:1.7.0-alpha01'
96+
implementation 'androidx.compose.runtime:runtime-android:1.7.0-beta01'
9797

9898
// build.gradle.kts with version catalogs:
9999
implementation(libs.runtime-android)
100100

101101
# libs.versions.toml
102102
[versions]
103-
runtime-android = "1.7.0-alpha01"
103+
runtime-android = "1.7.0-beta01"
104104
[libraries]
105105
runtime-android = {
106106
module = "androidx.compose.runtime:runtime-android",
107107
version.ref = "runtime-android"
108108
}
109109
```
110110

111-
1.7.0-alpha01 is the version this documentation was generated from;
111+
1.7.0-beta01 is the version this documentation was generated from;
112112
there may be newer versions available.
113113

114114
[Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html).

docs/checks/BadConfigurationProvider.md.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,25 @@
5252

5353
```
5454
// build.gradle.kts
55-
implementation("androidx.work:work-runtime:2.10.0-alpha01")
55+
implementation("androidx.work:work-runtime:2.10.0-alpha02")
5656

5757
// build.gradle
58-
implementation 'androidx.work:work-runtime:2.10.0-alpha01'
58+
implementation 'androidx.work:work-runtime:2.10.0-alpha02'
5959

6060
// build.gradle.kts with version catalogs:
6161
implementation(libs.work-runtime)
6262

6363
# libs.versions.toml
6464
[versions]
65-
work-runtime = "2.10.0-alpha01"
65+
work-runtime = "2.10.0-alpha02"
6666
[libraries]
6767
work-runtime = {
6868
module = "androidx.work:work-runtime",
6969
version.ref = "work-runtime"
7070
}
7171
```
7272

73-
2.10.0-alpha01 is the version this documentation was generated from;
73+
2.10.0-alpha02 is the version this documentation was generated from;
7474
there may be newer versions available.
7575

7676
[Additional details about androidx.work:work-runtime](androidx_work_work-runtime.md.html).

docs/checks/BadPeriodicWorkRequestEnqueue.md.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,25 @@
5252

5353
```
5454
// build.gradle.kts
55-
implementation("androidx.work:work-runtime:2.10.0-alpha01")
55+
implementation("androidx.work:work-runtime:2.10.0-alpha02")
5656

5757
// build.gradle
58-
implementation 'androidx.work:work-runtime:2.10.0-alpha01'
58+
implementation 'androidx.work:work-runtime:2.10.0-alpha02'
5959

6060
// build.gradle.kts with version catalogs:
6161
implementation(libs.work-runtime)
6262

6363
# libs.versions.toml
6464
[versions]
65-
work-runtime = "2.10.0-alpha01"
65+
work-runtime = "2.10.0-alpha02"
6666
[libraries]
6767
work-runtime = {
6868
module = "androidx.work:work-runtime",
6969
version.ref = "work-runtime"
7070
}
7171
```
7272

73-
2.10.0-alpha01 is the version this documentation was generated from;
73+
2.10.0-alpha02 is the version this documentation was generated from;
7474
there may be newer versions available.
7575

7676
[Additional details about androidx.work:work-runtime](androidx_work_work-runtime.md.html).

docs/checks/BindingReceiverParameter.md.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<meta charset="utf-8">
2-
(#) @Binds/@Provides functions cannot be extension functions.
2+
(#) @Binds/@Provides functions cannot be extensions
33

4-
!!! ERROR: @Binds/@Provides functions cannot be extension functions.
4+
!!! ERROR: @Binds/@Provides functions cannot be extensions
55
This is an error.
66

77
Id
88
: `BindingReceiverParameter`
99
Summary
10-
: @Binds/@Provides functions cannot be extension functions.
10+
: @Binds/@Provides functions cannot be extensions
1111
Severity
1212
: Error
1313
Category
@@ -169,25 +169,25 @@
169169

170170
```
171171
// build.gradle.kts
172-
lintChecks("com.slack.lint:slack-lint-checks:0.7.0")
172+
lintChecks("com.slack.lint:slack-lint-checks:0.7.3")
173173

174174
// build.gradle
175-
lintChecks 'com.slack.lint:slack-lint-checks:0.7.0'
175+
lintChecks 'com.slack.lint:slack-lint-checks:0.7.3'
176176

177177
// build.gradle.kts with version catalogs:
178178
lintChecks(libs.slack-lint-checks)
179179

180180
# libs.versions.toml
181181
[versions]
182-
slack-lint-checks = "0.7.0"
182+
slack-lint-checks = "0.7.3"
183183
[libraries]
184184
slack-lint-checks = {
185185
module = "com.slack.lint:slack-lint-checks",
186186
version.ref = "slack-lint-checks"
187187
}
188188
```
189189

190-
0.7.0 is the version this documentation was generated from;
190+
0.7.3 is the version this documentation was generated from;
191191
there may be newer versions available.
192192

193193
[Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html).

docs/checks/BindingReturnType.md.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<meta charset="utf-8">
2-
(#) @Binds/@Provides functions must have a return type. Cannot be void or Unit.
2+
(#) @Binds/@Provides must have a return type
33

4-
!!! ERROR: @Binds/@Provides functions must have a return type. Cannot be void or Unit.
4+
!!! ERROR: @Binds/@Provides must have a return type
55
This is an error.
66

77
Id
88
: `BindingReturnType`
99
Summary
10-
: @Binds/@Provides functions must have a return type. Cannot be void or Unit.
10+
: @Binds/@Provides must have a return type
1111
Severity
1212
: Error
1313
Category
@@ -105,25 +105,25 @@
105105

106106
```
107107
// build.gradle.kts
108-
lintChecks("com.slack.lint:slack-lint-checks:0.7.0")
108+
lintChecks("com.slack.lint:slack-lint-checks:0.7.3")
109109

110110
// build.gradle
111-
lintChecks 'com.slack.lint:slack-lint-checks:0.7.0'
111+
lintChecks 'com.slack.lint:slack-lint-checks:0.7.3'
112112

113113
// build.gradle.kts with version catalogs:
114114
lintChecks(libs.slack-lint-checks)
115115

116116
# libs.versions.toml
117117
[versions]
118-
slack-lint-checks = "0.7.0"
118+
slack-lint-checks = "0.7.3"
119119
[libraries]
120120
slack-lint-checks = {
121121
module = "com.slack.lint:slack-lint-checks",
122122
version.ref = "slack-lint-checks"
123123
}
124124
```
125125

126-
0.7.0 is the version this documentation was generated from;
126+
0.7.3 is the version this documentation was generated from;
127127
there may be newer versions available.
128128

129129
[Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html).

0 commit comments

Comments
 (0)