diff --git a/docs/checks/AppLinkSplitToWebAndCustom.md.html b/docs/checks/AppLinkSplitToWebAndCustom.md.html new file mode 100644 index 00000000..e88e2ed6 --- /dev/null +++ b/docs/checks/AppLinkSplitToWebAndCustom.md.html @@ -0,0 +1,160 @@ + +(#) Android App links should only use http(s) schemes + +!!! ERROR: Android App links should only use http(s) schemes + This is an error. + +Id +: `AppLinkSplitToWebAndCustom` +Summary +: Android App links should only use http(s) schemes +Severity +: Error +Category +: Correctness +Platform +: Android +Vendor +: Android Open Source Project +Feedback +: https://issuetracker.google.com/issues/new?component=192708 +Affects +: Manifest files +Editing +: This check runs on the fly in the IDE editor +See +: https://developer.android.com/training/app-links/verify-android-applinks#add-intent-filters +Implementation +: [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/AppLinksValidDetector.kt) +Tests +: [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/AppLinksValidDetectorTest.kt) +Copyright Year +: 2017 + +In order for Android App Links to open in your app, Android must perform +domain verification. However, Android only sends domain verification +requests for ``s that only contain http(s) schemes. + +To ensure correct behavior, please split your http(s) schemes and other +schemes into two different ``s. + +!!! Tip + This lint check has an associated quickfix available in the IDE. + +(##) Example + +Here is an example of lint warnings produced by this check: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text +AndroidManifest.xml:7:Error: Split your http(s) and custom schemes into +separate intent filters [AppLinkSplitToWebAndCustom] + <intent-filter android:autoVerify="true" android:order="-1" android:priority="-1"> + ^ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Here are the relevant source files: + +`AndroidManifest.xml`: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~xml linenumbers +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="com.example.helloworld" > + <uses-sdk android:minSdkVersion="31" android:targetSdkVersion="34" /> + + <application> + <activity android:name=".SplitWebAndCustomActivity" android:exported="true"> + <intent-filter android:autoVerify="true" android:order="-1" android:priority="-1"> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.BROWSABLE" /> + <uri-relative-filter-group> + <data android:path="/path" /> + <data android:query="queryparam=value" /> + </uri-relative-filter-group> + <data android:scheme="http" /> + <data android:scheme="custom" /> + <data android:host="library.com" /> + <data android:path="@string/path" /> + <data android:path="/<&''" /> + <data android:path='/single"quote' /> + <data android:path="" /> + <!-- Test having tags underneath the host elements as well --> + <action android:name="android.intent.action.SEND"/> + <uri-relative-filter-group> + <data android:path="/path" /> + <data android:query="queryparam=value" /> + </uri-relative-filter-group> + </intent-filter> + </activity> + </application> +</manifest> +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +`res/values/strings.xml`: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~xml linenumbers +<resources> + <string name="path">/path</string> +</resources> +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +You can also visit the +[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/AppLinksValidDetectorTest.kt) +for the unit tests for this check to see additional scenarios. + +The above example was automatically extracted from the first unit test +found for this lint check, `AppLinksValidDetector.test_splitToWebAndCustomSchemes`. +To report a problem with this extracted sample, visit +https://issuetracker.google.com/issues/new?component=192708. + +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Adding the suppression attribute + `tools:ignore="AppLinkSplitToWebAndCustom"` on the problematic XML + element (or one of its enclosing elements). You may also need to add + the following namespace declaration on the root element in the XML + file if it's not already there: + `xmlns:tools="http://schemas.android.com/tools"`. + + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <manifest xmlns:tools="http://schemas.android.com/tools"> + ... + <activity tools:ignore="AppLinkSplitToWebAndCustom" .../> + ... + </manifest> + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="AppLinkSplitToWebAndCustom" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'AppLinkSplitToWebAndCustom' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore AppLinkSplitToWebAndCustom ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/AppLinkWarning.md.html b/docs/checks/AppLinkWarning.md.html new file mode 100644 index 00000000..2bee0928 --- /dev/null +++ b/docs/checks/AppLinkWarning.md.html @@ -0,0 +1,225 @@ + +(#) App Link warning + +!!! WARNING: App Link warning + This is a warning. + +Id +: `AppLinkWarning` +Summary +: App Link warning +Severity +: Warning +Category +: Correctness +Platform +: Android +Vendor +: Android Open Source Project +Feedback +: https://issuetracker.google.com/issues/new?component=192708 +Affects +: Manifest files +Editing +: This check runs on the fly in the IDE editor +See +: https://developer.android.com/training/app-links +See +: https://g.co/AppIndexing/AndroidStudio +Implementation +: [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/AppLinksValidDetector.kt) +Tests +: [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/AppLinksValidDetectorTest.kt) +Copyright Year +: 2017 + +From Android 12, intent filters that use the HTTP and HTTPS schemes will +no longer bring the user to your app when the user clicks +a link, unless the intent filter is an Android App Link. +Such intent filters must include certain elements, and at least + one Android App Link for each domain must have +`android:autoVerify="true"` to verify ownership of the +domain. We recommend adding `android:autoVerify="true"` to any intent + filter that is intended to be an App Link, in case the other +App Links are modified. + +!!! Tip + This lint check has an associated quickfix available in the IDE. + +(##) Example + +Here is an example of lint warnings produced by this check: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text +AndroidManifest.xml:6:Warning: This intent filter has the format of an +Android App Link but is missing the autoVerify attribute; add +android:autoVerify="true" to ensure your domain will be validated and +enable App Link-related Lint warnings. If you do not want clicked URLs +to bring the user to your app, remove the +android.intent.category.BROWSABLE category, or set +android:autoVerify="false" to make it clear this is not intended to be +an Android App Link. [AppLinkWarning] + <intent-filter> <!-- We expect a warning here --> + ------------- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Here is the source file referenced above: + +`AndroidManifest.xml`: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~xml linenumbers +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="com.example.helloworld" > + + <application> + <activity android:name=".FullscreenActivity"> + <intent-filter> <!-- We expect a warning here --> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.BROWSABLE" /> + + <data android:scheme="http" /> + <data android:scheme="https" /> + + <data android:host="example.com" /> + <data android:pathPrefix="/gizmos" /> + </intent-filter> + + <intent-filter> <!-- Missing VIEW --> + <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.BROWSABLE" /> + + <data android:scheme="http" /> + <data android:scheme="https" /> + + <data android:host="example.com" /> + <data android:pathPrefix="/gizmos" /> + </intent-filter> + + <intent-filter> <!-- Missing DEFAULT --> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.BROWSABLE" /> + + <data android:scheme="http" /> + <data android:scheme="https" /> + + <data android:host="example.com" /> + <data android:pathPrefix="/gizmos" /> + </intent-filter> + + <intent-filter> <!-- Missing BROWSABLE --> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.DEFAULT" /> + + <data android:scheme="http" /> + <data android:scheme="https" /> + + <data android:host="example.com" /> + <data android:pathPrefix="/gizmos" /> + </intent-filter> + + <intent-filter> <!-- Has custom scheme, missing http --> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.BROWSABLE" /> + + <data android:scheme="other" /> + + <data android:host="example.com" /> + <data android:pathPrefix="/gizmos" /> + </intent-filter> + + <intent-filter> <!-- Has no scheme --> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.BROWSABLE" /> + + <data android:host="example.com" /> + <data android:pathPrefix="/gizmos" /> + </intent-filter> + + <intent-filter> <!-- Missing host --> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.BROWSABLE" /> + + <data android:scheme="http" /> + <data android:scheme="https" /> + </intent-filter> + + <intent-filter android:autoVerify="false"> <!-- We would usually expect a warning here, but it has autoVerify="false" --> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.BROWSABLE" /> + + <data android:scheme="http" /> + <data android:scheme="https" /> + + <data android:host="example.com" /> + <data android:pathPrefix="/gizmos" /> + </intent-filter> + </activity> + </application> +</manifest> +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +You can also visit the +[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/AppLinksValidDetectorTest.kt) +for the unit tests for this check to see additional scenarios. + +The above example was automatically extracted from the first unit test +found for this lint check, `AppLinksValidDetector.testAddAutoVerifySuggestion`. +To report a problem with this extracted sample, visit +https://issuetracker.google.com/issues/new?component=192708. + +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Adding the suppression attribute `tools:ignore="AppLinkWarning"` on + the problematic XML element (or one of its enclosing elements). You + may also need to add the following namespace declaration on the root + element in the XML file if it's not already there: + `xmlns:tools="http://schemas.android.com/tools"`. + + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <manifest xmlns:tools="http://schemas.android.com/tools"> + ... + <activity tools:ignore="AppLinkWarning" .../> + ... + </manifest> + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="AppLinkWarning" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'AppLinkWarning' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore AppLinkWarning ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/ArcAnimationSpecTypeIssue.md.html b/docs/checks/ArcAnimationSpecTypeIssue.md.html index f7cc8c09..eaf03ce5 100644 --- a/docs/checks/ArcAnimationSpecTypeIssue.md.html +++ b/docs/checks/ArcAnimationSpecTypeIssue.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.animation:animation-core-android](androidx_compose_animation_animation-core-android.md.html) @@ -99,17 +99,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.animation:animation-core-android:1.8.0-alpha02") +implementation("androidx.compose.animation:animation-core-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.animation:animation-core-android:1.8.0-alpha02' +implementation 'androidx.compose.animation:animation-core-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.animation.core.android) # libs.versions.toml [versions] -animation-core-android = "1.8.0-alpha02" +animation-core-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -121,9 +121,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.animation:animation-core-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.animation:animation-core-android](androidx_compose_animation_animation-core-android.md.html). (##) Suppressing diff --git a/docs/checks/ArgInFormattedQuantityStringRes.md.html b/docs/checks/ArgInFormattedQuantityStringRes.md.html index a4982c72..6dc58815 100644 --- a/docs/checks/ArgInFormattedQuantityStringRes.md.html +++ b/docs/checks/ArgInFormattedQuantityStringRes.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -91,17 +91,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -113,7 +113,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/AutoboxingStateCreation.md.html b/docs/checks/AutoboxingStateCreation.md.html index 4c5c68f0..6a3be685 100644 --- a/docs/checks/AutoboxingStateCreation.md.html +++ b/docs/checks/AutoboxingStateCreation.md.html @@ -94,17 +94,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -116,9 +116,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/AutoboxingStateValueProperty.md.html b/docs/checks/AutoboxingStateValueProperty.md.html index 62608cb7..d6a9ee6f 100644 --- a/docs/checks/AutoboxingStateValueProperty.md.html +++ b/docs/checks/AutoboxingStateValueProperty.md.html @@ -89,17 +89,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -111,9 +111,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/AvoidUsingNotNullOperator.md.html b/docs/checks/AvoidUsingNotNullOperator.md.html new file mode 100644 index 00000000..8dfda0f1 --- /dev/null +++ b/docs/checks/AvoidUsingNotNullOperator.md.html @@ -0,0 +1,179 @@ + +(#) Avoid using the !! operator in Kotlin + +!!! WARNING: Avoid using the !! operator in Kotlin + This is a warning. + +Id +: `AvoidUsingNotNullOperator` +Summary +: Avoid using the !! operator in Kotlin +Severity +: Warning +Category +: Correctness +Platform +: Any +Vendor +: slack +Identifier +: slack-lint +Contact +: https://github.com/slackhq/slack-lints +Feedback +: https://github.com/slackhq/slack-lints +Min +: Lint 8.7+ +Compiled +: Lint 8.7+ +Artifact +: [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) + +Affects +: Kotlin and Java files and test sources +Editing +: This check runs on the fly in the IDE editor +Implementation +: [Source Code](https://github.com/slackhq/slack-lints/tree/main/slack-lint-checks/src/main/java/slack/lint/NotNullOperatorDetector.kt) +Tests +: [Source Code](https://github.com/slackhq/slack-lints/tree/main/slack-lint-checks/src/test/java/slack/lint/NotNullOperatorDetectorTest.kt) +Copyright Year +: 2024 + +The `!!` operator is a not-null assertion in Kotlin that will lead to a +`NullPointerException` if the value is null. It's better to use safe +null-handling mechanisms like `?.`, `?:`, `?.let`, etc. + +(##) Example + +Here is an example of lint warnings produced by this check: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text +src/foo/Test.kt:6:Warning: Avoid using the !! operator +[AvoidUsingNotNullOperator] + t/* this is legal */!!.length + -- +src/foo/Test.kt:7:Warning: Avoid using the !! operator +[AvoidUsingNotNullOperator] + return t!!.length == 1 + -- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Here is the source file referenced above: + +`src/foo/Test.kt`: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~kotlin linenumbers +package foo + +class Test { + fun doNothing(t: String?): Boolean { + t/* this is legal */!!.length + return t!!.length == 1 + } +} +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +You can also visit the +[source code](https://github.com/slackhq/slack-lints/tree/main/slack-lint-checks/src/test/java/slack/lint/NotNullOperatorDetectorTest.kt) +for the unit tests for this check to see additional scenarios. + +(##) Including + +!!! + This is not a built-in check. To include it, add the below dependency + to your project. This lint check is included in the lint documentation, + but the Android team may or may not agree with its recommendations. + +``` +// build.gradle.kts +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") + +// build.gradle +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' + +// build.gradle.kts with version catalogs: +lintChecks(libs.slack.lint.checks) + +# libs.versions.toml +[versions] +slack-lint-checks = "0.8.2" +[libraries] +# For clarity and text wrapping purposes the following declaration is +# shown split up across lines, but in TOML it needs to be on a single +# line (see https://github.com/toml-lang/toml/issues/516) so adjust +# when pasting into libs.versions.toml: +slack-lint-checks = { + module = "com.slack.lint:slack-lint-checks", + version.ref = "slack-lint-checks" +} +``` + +0.8.2 is the version this documentation was generated from; +there may be newer versions available. + +[Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Using a suppression annotation like this on the enclosing + element: + + ```kt + // Kotlin + @Suppress("AvoidUsingNotNullOperator") + fun method() { + problematicStatement() + } + ``` + + or + + ```java + // Java + @SuppressWarnings("AvoidUsingNotNullOperator") + void method() { + problematicStatement(); + } + ``` + +* Using a suppression comment like this on the line above: + + ```kt + //noinspection AvoidUsingNotNullOperator + problematicStatement() + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="AvoidUsingNotNullOperator" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'AvoidUsingNotNullOperator' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore AvoidUsingNotNullOperator ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/BadConfigurationProvider.md.html b/docs/checks/BadConfigurationProvider.md.html index 7dabbc79..f34edf32 100644 --- a/docs/checks/BadConfigurationProvider.md.html +++ b/docs/checks/BadConfigurationProvider.md.html @@ -25,7 +25,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.work:work-runtime](androidx_work_work-runtime.md.html) @@ -96,17 +96,17 @@ ``` // build.gradle.kts -implementation("androidx.work:work-runtime:2.10.0-alpha04") +implementation("androidx.work:work-runtime:2.10.0") // build.gradle -implementation 'androidx.work:work-runtime:2.10.0-alpha04' +implementation 'androidx.work:work-runtime:2.10.0' // build.gradle.kts with version catalogs: implementation(libs.work.runtime) # libs.versions.toml [versions] -work-runtime = "2.10.0-alpha04" +work-runtime = "2.10.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -118,7 +118,7 @@ } ``` -2.10.0-alpha04 is the version this documentation was generated from; +2.10.0 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.work:work-runtime](androidx_work_work-runtime.md.html). diff --git a/docs/checks/BadPeriodicWorkRequestEnqueue.md.html b/docs/checks/BadPeriodicWorkRequestEnqueue.md.html index ff4828d1..e74be21e 100644 --- a/docs/checks/BadPeriodicWorkRequestEnqueue.md.html +++ b/docs/checks/BadPeriodicWorkRequestEnqueue.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.work:work-runtime](androidx_work_work-runtime.md.html) @@ -52,17 +52,17 @@ ``` // build.gradle.kts -implementation("androidx.work:work-runtime:2.10.0-alpha04") +implementation("androidx.work:work-runtime:2.10.0") // build.gradle -implementation 'androidx.work:work-runtime:2.10.0-alpha04' +implementation 'androidx.work:work-runtime:2.10.0' // build.gradle.kts with version catalogs: implementation(libs.work.runtime) # libs.versions.toml [versions] -work-runtime = "2.10.0-alpha04" +work-runtime = "2.10.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -74,7 +74,7 @@ } ``` -2.10.0-alpha04 is the version this documentation was generated from; +2.10.0 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.work:work-runtime](androidx_work_work-runtime.md.html). diff --git a/docs/checks/BindingReceiverParameter.md.html b/docs/checks/BindingReceiverParameter.md.html index d9fba17d..0dd17d15 100644 --- a/docs/checks/BindingReceiverParameter.md.html +++ b/docs/checks/BindingReceiverParameter.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -144,17 +144,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -166,7 +166,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/BindingReturnType.md.html b/docs/checks/BindingReturnType.md.html index 5b94f62d..cb960716 100644 --- a/docs/checks/BindingReturnType.md.html +++ b/docs/checks/BindingReturnType.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -101,17 +101,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -123,7 +123,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/BindsMustBeAbstract.md.html b/docs/checks/BindsMustBeAbstract.md.html index 97a8affd..be1aaca4 100644 --- a/docs/checks/BindsMustBeAbstract.md.html +++ b/docs/checks/BindsMustBeAbstract.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -100,17 +100,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -122,7 +122,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/BindsTypeMismatch.md.html b/docs/checks/BindsTypeMismatch.md.html index 0c8480b7..3f909d3f 100644 --- a/docs/checks/BindsTypeMismatch.md.html +++ b/docs/checks/BindsTypeMismatch.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -109,17 +109,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -131,7 +131,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/BindsWrongParameterCount.md.html b/docs/checks/BindsWrongParameterCount.md.html index 1d659308..13915c2f 100644 --- a/docs/checks/BindsWrongParameterCount.md.html +++ b/docs/checks/BindsWrongParameterCount.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -90,17 +90,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -112,7 +112,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/BrokenIterator.md.html b/docs/checks/BrokenIterator.md.html index 7e2ab197..0bf12447 100644 --- a/docs/checks/BrokenIterator.md.html +++ b/docs/checks/BrokenIterator.md.html @@ -140,9 +140,9 @@ } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -`src/test/pkg/LinkedHashmapTest.kt`: +`src/test/pkg/kt/LinkedHashmapTest.kt`: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~kotlin linenumbers -package test.pkg +package test.pkg.kt import android.os.Build import androidx.annotation.RequiresApi diff --git a/docs/checks/CanvasSize.md.html b/docs/checks/CanvasSize.md.html index c87bf021..a2b4f509 100644 --- a/docs/checks/CanvasSize.md.html +++ b/docs/checks/CanvasSize.md.html @@ -166,14 +166,14 @@ } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -`src/test/pkg/MyDrawable.kt`: +`src/test/pkg/MyDrawableKotlin.kt`: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~kotlin linenumbers package test.pkg import android.graphics.Canvas import android.graphics.drawable.Drawable -abstract class MyDrawable : Drawable() { +abstract class MyDrawableKotlin : Drawable() { override fun draw(canvas: Canvas) { val width1 = bounds.width() // OK val width2 = canvas.width // WARN diff --git a/docs/checks/CastingViewContextToActivity.md.html b/docs/checks/CastingViewContextToActivity.md.html index e8ddc138..f8ea68c0 100644 --- a/docs/checks/CastingViewContextToActivity.md.html +++ b/docs/checks/CastingViewContextToActivity.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -42,7 +42,7 @@ `View.getContext()` is not guaranteed to return an `Activity` and can often return a `ContextWrapper` instead resulting in a -`ClassCastException`. Instead, use +`ClassCastException`. Instead, use `UiUtils.getActivityFromView()`. (##) Including @@ -54,17 +54,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -76,7 +76,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/ComposableDestinationInComposeScope.md.html b/docs/checks/ComposableDestinationInComposeScope.md.html index 1ea8d514..aa3edb87 100644 --- a/docs/checks/ComposableDestinationInComposeScope.md.html +++ b/docs/checks/ComposableDestinationInComposeScope.md.html @@ -88,17 +88,17 @@ ``` // build.gradle.kts -implementation("androidx.navigation:navigation-compose:2.8.1") +implementation("androidx.navigation:navigation-compose:2.9.0-alpha03") // build.gradle -implementation 'androidx.navigation:navigation-compose:2.8.1' +implementation 'androidx.navigation:navigation-compose:2.9.0-alpha03' // build.gradle.kts with version catalogs: implementation(libs.navigation.compose) # libs.versions.toml [versions] -navigation-compose = "2.8.1" +navigation-compose = "2.9.0-alpha03" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -110,7 +110,7 @@ } ``` -2.8.1 is the version this documentation was generated from; +2.9.0-alpha03 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.navigation:navigation-compose](androidx_navigation_navigation-compose.md.html). diff --git a/docs/checks/ComposableLambdaParameterNaming.md.html b/docs/checks/ComposableLambdaParameterNaming.md.html index 3180d201..588378fe 100644 --- a/docs/checks/ComposableLambdaParameterNaming.md.html +++ b/docs/checks/ComposableLambdaParameterNaming.md.html @@ -87,17 +87,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -109,9 +109,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/ComposableLambdaParameterPosition.md.html b/docs/checks/ComposableLambdaParameterPosition.md.html index 9823aa7e..1d64c55c 100644 --- a/docs/checks/ComposableLambdaParameterPosition.md.html +++ b/docs/checks/ComposableLambdaParameterPosition.md.html @@ -86,17 +86,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -108,9 +108,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/ComposableNaming.md.html b/docs/checks/ComposableNaming.md.html index 23c30ced..d49990ec 100644 --- a/docs/checks/ComposableNaming.md.html +++ b/docs/checks/ComposableNaming.md.html @@ -86,17 +86,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -108,9 +108,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/ComposableNavGraphInComposeScope.md.html b/docs/checks/ComposableNavGraphInComposeScope.md.html index e813dee0..c8dd91bb 100644 --- a/docs/checks/ComposableNavGraphInComposeScope.md.html +++ b/docs/checks/ComposableNavGraphInComposeScope.md.html @@ -88,17 +88,17 @@ ``` // build.gradle.kts -implementation("androidx.navigation:navigation-compose:2.8.1") +implementation("androidx.navigation:navigation-compose:2.9.0-alpha03") // build.gradle -implementation 'androidx.navigation:navigation-compose:2.8.1' +implementation 'androidx.navigation:navigation-compose:2.9.0-alpha03' // build.gradle.kts with version catalogs: implementation(libs.navigation.compose) # libs.versions.toml [versions] -navigation-compose = "2.8.1" +navigation-compose = "2.9.0-alpha03" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -110,7 +110,7 @@ } ``` -2.8.1 is the version this documentation was generated from; +2.9.0-alpha03 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.navigation:navigation-compose](androidx_navigation_navigation-compose.md.html). diff --git a/docs/checks/ComposeCompositionLocalGetter.md.html b/docs/checks/ComposeCompositionLocalGetter.md.html index 4f3cdacd..ca77ae9b 100644 --- a/docs/checks/ComposeCompositionLocalGetter.md.html +++ b/docs/checks/ComposeCompositionLocalGetter.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -105,17 +105,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -127,7 +127,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeCompositionLocalUsage.md.html b/docs/checks/ComposeCompositionLocalUsage.md.html index d68a5b98..4a7ee038 100644 --- a/docs/checks/ComposeCompositionLocalUsage.md.html +++ b/docs/checks/ComposeCompositionLocalUsage.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -121,17 +121,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -143,7 +143,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeContentEmitterReturningValues.md.html b/docs/checks/ComposeContentEmitterReturningValues.md.html index 8658216f..4ea2e544 100644 --- a/docs/checks/ComposeContentEmitterReturningValues.md.html +++ b/docs/checks/ComposeContentEmitterReturningValues.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -39,10 +39,10 @@ : 2023 Composable functions should either emit content into the composition or -return a value, but not both.If a composable should offer additional +return a value, but not both. If a composable should offer additional control surfaces to its caller, those control surfaces or callbacks should be provided as parameters to the composable function by the -caller.See +caller. See https://slackhq.github.io/compose-lints/rules/#do-not-emit-content-and-return-a-result for more information. @@ -126,17 +126,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -148,7 +148,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeM2Api.md.html b/docs/checks/ComposeM2Api.md.html index b68cfbb4..65927c15 100644 --- a/docs/checks/ComposeM2Api.md.html +++ b/docs/checks/ComposeM2Api.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -162,17 +162,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -184,7 +184,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeModifierComposed.md.html b/docs/checks/ComposeModifierComposed.md.html index a89c32fb..d32a8a1b 100644 --- a/docs/checks/ComposeModifierComposed.md.html +++ b/docs/checks/ComposeModifierComposed.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -116,17 +116,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -138,7 +138,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeModifierMissing.md.html b/docs/checks/ComposeModifierMissing.md.html index 04460b9f..83387f8a 100644 --- a/docs/checks/ComposeModifierMissing.md.html +++ b/docs/checks/ComposeModifierMissing.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -154,17 +154,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -176,7 +176,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeModifierReused.md.html b/docs/checks/ComposeModifierReused.md.html index 1f40c3ec..d5558852 100644 --- a/docs/checks/ComposeModifierReused.md.html +++ b/docs/checks/ComposeModifierReused.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -238,17 +238,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -260,7 +260,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeModifierWithoutDefault.md.html b/docs/checks/ComposeModifierWithoutDefault.md.html index 4f443d96..62aee6d9 100644 --- a/docs/checks/ComposeModifierWithoutDefault.md.html +++ b/docs/checks/ComposeModifierWithoutDefault.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -95,17 +95,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -117,7 +117,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeMultipleContentEmitters.md.html b/docs/checks/ComposeMultipleContentEmitters.md.html index 855abf97..c8b6f579 100644 --- a/docs/checks/ComposeMultipleContentEmitters.md.html +++ b/docs/checks/ComposeMultipleContentEmitters.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -121,17 +121,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -143,7 +143,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeMutableParameters.md.html b/docs/checks/ComposeMutableParameters.md.html index 30944b44..c04607ea 100644 --- a/docs/checks/ComposeMutableParameters.md.html +++ b/docs/checks/ComposeMutableParameters.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -122,17 +122,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -144,7 +144,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeNamingLowercase.md.html b/docs/checks/ComposeNamingLowercase.md.html index 8924aaa0..22961f9d 100644 --- a/docs/checks/ComposeNamingLowercase.md.html +++ b/docs/checks/ComposeNamingLowercase.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -103,17 +103,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -125,7 +125,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeNamingUppercase.md.html b/docs/checks/ComposeNamingUppercase.md.html index ade79821..062fc225 100644 --- a/docs/checks/ComposeNamingUppercase.md.html +++ b/docs/checks/ComposeNamingUppercase.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -113,17 +113,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -135,7 +135,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeParameterOrder.md.html b/docs/checks/ComposeParameterOrder.md.html index d1d41a01..2f743010 100644 --- a/docs/checks/ComposeParameterOrder.md.html +++ b/docs/checks/ComposeParameterOrder.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -151,17 +151,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -173,7 +173,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposePreviewNaming.md.html b/docs/checks/ComposePreviewNaming.md.html index 5defc7c3..dc2c82e4 100644 --- a/docs/checks/ComposePreviewNaming.md.html +++ b/docs/checks/ComposePreviewNaming.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -99,17 +99,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -121,7 +121,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposePreviewPublic.md.html b/docs/checks/ComposePreviewPublic.md.html index 8db75c46..e4703edd 100644 --- a/docs/checks/ComposePreviewPublic.md.html +++ b/docs/checks/ComposePreviewPublic.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -104,17 +104,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -126,7 +126,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeRememberMissing.md.html b/docs/checks/ComposeRememberMissing.md.html index b497aca7..ca2f5765 100644 --- a/docs/checks/ComposeRememberMissing.md.html +++ b/docs/checks/ComposeRememberMissing.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -99,17 +99,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -121,7 +121,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeUnstableCollections.md.html b/docs/checks/ComposeUnstableCollections.md.html index bce93975..db7a620a 100644 --- a/docs/checks/ComposeUnstableCollections.md.html +++ b/docs/checks/ComposeUnstableCollections.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -124,17 +124,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -146,7 +146,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeUnstableReceiver.md.html b/docs/checks/ComposeUnstableReceiver.md.html index 0c9e3e84..838b7287 100644 --- a/docs/checks/ComposeUnstableReceiver.md.html +++ b/docs/checks/ComposeUnstableReceiver.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -140,17 +140,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -162,7 +162,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeViewModelForwarding.md.html b/docs/checks/ComposeViewModelForwarding.md.html index a806c56f..3c0fdfdf 100644 --- a/docs/checks/ComposeViewModelForwarding.md.html +++ b/docs/checks/ComposeViewModelForwarding.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -88,17 +88,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -110,7 +110,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/ComposeViewModelInjection.md.html b/docs/checks/ComposeViewModelInjection.md.html index 42598b38..c4a65299 100644 --- a/docs/checks/ComposeViewModelInjection.md.html +++ b/docs/checks/ComposeViewModelInjection.md.html @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -131,17 +131,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -153,7 +153,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). diff --git a/docs/checks/CompositionLocalNaming.md.html b/docs/checks/CompositionLocalNaming.md.html index c3c78940..fb517244 100644 --- a/docs/checks/CompositionLocalNaming.md.html +++ b/docs/checks/CompositionLocalNaming.md.html @@ -103,17 +103,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -125,9 +125,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/ConflictingOnColor.md.html b/docs/checks/ConflictingOnColor.md.html index 02cc4b09..e8b138b9 100644 --- a/docs/checks/ConflictingOnColor.md.html +++ b/docs/checks/ConflictingOnColor.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.material:material-android](androidx_compose_material_material-android.md.html) @@ -180,17 +180,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.material:material-android:1.8.0-alpha02") +implementation("androidx.compose.material:material-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.material:material-android:1.8.0-alpha02' +implementation 'androidx.compose.material:material-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.material.android) # libs.versions.toml [versions] -material-android = "1.8.0-alpha02" +material-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -202,9 +202,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.material:material-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.material:material-android](androidx_compose_material_material-android.md.html). (##) Suppressing diff --git a/docs/checks/ConstantContentStateKeyInItemsCall.md.html b/docs/checks/ConstantContentStateKeyInItemsCall.md.html index 9c6b677f..7dd9b415 100644 --- a/docs/checks/ConstantContentStateKeyInItemsCall.md.html +++ b/docs/checks/ConstantContentStateKeyInItemsCall.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.animation:animation-android](androidx_compose_animation_animation-android.md.html) @@ -221,17 +221,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.animation:animation-android:1.8.0-alpha02") +implementation("androidx.compose.animation:animation-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.animation:animation-android:1.8.0-alpha02' +implementation 'androidx.compose.animation:animation-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.animation.android) # libs.versions.toml [versions] -animation-android = "1.8.0-alpha02" +animation-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -243,9 +243,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.animation:animation-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.animation:animation-android](androidx_compose_animation_animation-android.md.html). (##) Suppressing diff --git a/docs/checks/ContextCastToActivity.md.html b/docs/checks/ContextCastToActivity.md.html new file mode 100644 index 00000000..fa411539 --- /dev/null +++ b/docs/checks/ContextCastToActivity.md.html @@ -0,0 +1,190 @@ + +(#) LocalContext should not be cast to Activity, use LocalActivity instead + +!!! ERROR: LocalContext should not be cast to Activity, use LocalActivity instead + This is an error. + +Id +: `ContextCastToActivity` +Summary +: LocalContext should not be cast to Activity, use LocalActivity instead +Severity +: Error +Category +: Correctness +Platform +: Any +Vendor +: Jetpack Activity Compose +Identifier +: androidx.activity.compose +Feedback +: https://issuetracker.google.com/issues/new?component=612128 +Min +: Lint 8.0 and 8.1 +Compiled +: Lint 8.0 and 8.1 +Artifact +: [androidx.activity:activity-compose](androidx_activity_activity-compose.md.html) + +Affects +: Kotlin and Java files and test sources +Editing +: This check runs on the fly in the IDE editor +Implementation +: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/activity/activity-compose-lint/src/main/java/androidx/activity/compose/lint/LocalContextCastIssueDetector.kt) +Tests +: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/activity/activity-compose-lint/src/test/java/androidx/activity/compose/lint/LocalContextCastIssueDetectorTest.kt) +Copyright Year +: 2024 + +Casting Context to Activity is an error as Contexts are not always +Activities. Use LocalActivity instead. + +(##) Example + +Here is an example of lint warnings produced by this check: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text +src/com/example/MyActivity.kt:11:Error: LocalContext should not be cast +to Activity, use LocalActivity instead [ContextCastToActivity] + val activity: Activity = LocalContext.current as Activity + -------------------------------- +src/com/example/MyActivity.kt:12:Error: LocalContext should not be cast +to Activity, use LocalActivity instead [ContextCastToActivity] + val activity2 = LocalContext.current as? Activity + --------------------------------- +src/com/example/MyActivity.kt:13:Error: LocalContext should not be cast +to Activity, use LocalActivity instead [ContextCastToActivity] + val activity3 = LocalContext.current as? MyActivity + ----------------------------------- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Here is the source file referenced above: + +`src/com/example/MyActivity.kt`: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~kotlin linenumbers +package com.example + +import android.app.Activity +import androidx.compose.runtime.Composable +import androidx.compose.ui.platform.LocalContext + +class MyActivity: Activity() + +@Composable +fun Test() { + val activity: Activity = LocalContext.current as Activity + val activity2 = LocalContext.current as? Activity + val activity3 = LocalContext.current as? MyActivity +} +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +You can also visit the +[source code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/activity/activity-compose-lint/src/test/java/androidx/activity/compose/lint/LocalContextCastIssueDetectorTest.kt) +for the unit tests for this check to see additional scenarios. + +The above example was automatically extracted from the first unit test +found for this lint check, `LocalContextCastIssueDetector.errors`. +To report a problem with this extracted sample, visit +https://issuetracker.google.com/issues/new?component=612128. + +(##) Including + +!!! + This is not a built-in check. To include it, add the below dependency + to your project. + +``` +// build.gradle.kts +implementation("androidx.activity:activity-compose:1.10.0-beta01") + +// build.gradle +implementation 'androidx.activity:activity-compose:1.10.0-beta01' + +// build.gradle.kts with version catalogs: +implementation(libs.activity.compose) + +# libs.versions.toml +[versions] +activity-compose = "1.10.0-beta01" +[libraries] +# For clarity and text wrapping purposes the following declaration is +# shown split up across lines, but in TOML it needs to be on a single +# line (see https://github.com/toml-lang/toml/issues/516) so adjust +# when pasting into libs.versions.toml: +activity-compose = { + module = "androidx.activity:activity-compose", + version.ref = "activity-compose" +} +``` + +1.10.0-beta01 is the version this documentation was generated from; +there may be newer versions available. + +[Additional details about androidx.activity:activity-compose](androidx_activity_activity-compose.md.html). +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Using a suppression annotation like this on the enclosing + element: + + ```kt + // Kotlin + @Suppress("ContextCastToActivity") + fun method() { + problematicStatement() + } + ``` + + or + + ```java + // Java + @SuppressWarnings("ContextCastToActivity") + void method() { + problematicStatement(); + } + ``` + +* Using a suppression comment like this on the line above: + + ```kt + //noinspection ContextCastToActivity + problematicStatement() + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="ContextCastToActivity" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'ContextCastToActivity' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore ContextCastToActivity ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/CoroutineCreationDuringComposition.md.html b/docs/checks/CoroutineCreationDuringComposition.md.html index 8b9e3a6d..42069dbb 100644 --- a/docs/checks/CoroutineCreationDuringComposition.md.html +++ b/docs/checks/CoroutineCreationDuringComposition.md.html @@ -236,17 +236,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -258,9 +258,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/DeepLinkInActivityDestination.md.html b/docs/checks/DeepLinkInActivityDestination.md.html index 9d846d9a..72539aea 100644 --- a/docs/checks/DeepLinkInActivityDestination.md.html +++ b/docs/checks/DeepLinkInActivityDestination.md.html @@ -38,11 +38,11 @@ Copyright Year : 2022 -Attaching a to an destination will never give +Attaching a to an destination will never give the right behavior when using an implicit deep link on another app's task (where the system back should immediately take the user back to the app that triggered -the deep link). Instead, attach the deep link directly to +the deep link). Instead, attach the deep link directly to the second activity (either by manually writing the appropriate or by adding the to the start destination of a nav host in that second activity). @@ -101,17 +101,17 @@ ``` // build.gradle.kts -implementation("androidx.navigation:navigation-runtime:2.8.1") +implementation("androidx.navigation:navigation-runtime:2.9.0-alpha03") // build.gradle -implementation 'androidx.navigation:navigation-runtime:2.8.1' +implementation 'androidx.navigation:navigation-runtime:2.9.0-alpha03' // build.gradle.kts with version catalogs: implementation(libs.navigation.runtime) # libs.versions.toml [versions] -navigation-runtime = "2.8.1" +navigation-runtime = "2.9.0-alpha03" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -123,7 +123,7 @@ } ``` -2.8.1 is the version this documentation was generated from; +2.9.0-alpha03 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.navigation:navigation-runtime](androidx_navigation_navigation-runtime.md.html). diff --git a/docs/checks/DefaultCleartextTraffic.md.html b/docs/checks/DefaultCleartextTraffic.md.html index 353b225c..44a33f29 100644 --- a/docs/checks/DefaultCleartextTraffic.md.html +++ b/docs/checks/DefaultCleartextTraffic.md.html @@ -85,17 +85,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -107,7 +107,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/DefaultTrustedUserCerts.md.html b/docs/checks/DefaultTrustedUserCerts.md.html index 4ea67880..1320054e 100644 --- a/docs/checks/DefaultTrustedUserCerts.md.html +++ b/docs/checks/DefaultTrustedUserCerts.md.html @@ -87,17 +87,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -109,7 +109,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/DenyListedApi.md.html b/docs/checks/DenyListedApi.md.html index e1c1b0a8..b0b17d57 100644 --- a/docs/checks/DenyListedApi.md.html +++ b/docs/checks/DenyListedApi.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -88,17 +88,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -110,7 +110,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DenyListedBlockingApi.md.html b/docs/checks/DenyListedBlockingApi.md.html index a3b4c645..febe2735 100644 --- a/docs/checks/DenyListedBlockingApi.md.html +++ b/docs/checks/DenyListedBlockingApi.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -87,17 +87,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -109,7 +109,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DeprecatedCall.md.html b/docs/checks/DeprecatedCall.md.html index 35dc4f4e..3a7feb37 100644 --- a/docs/checks/DeprecatedCall.md.html +++ b/docs/checks/DeprecatedCall.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -97,17 +97,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -119,7 +119,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DeprecatedSqlUsage.md.html b/docs/checks/DeprecatedSqlUsage.md.html index 57986442..7e5bb0e6 100644 --- a/docs/checks/DeprecatedSqlUsage.md.html +++ b/docs/checks/DeprecatedSqlUsage.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -85,17 +85,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -107,7 +107,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DetachAndAttachSameFragment.md.html b/docs/checks/DetachAndAttachSameFragment.md.html index 9c7bc389..713d56f1 100644 --- a/docs/checks/DetachAndAttachSameFragment.md.html +++ b/docs/checks/DetachAndAttachSameFragment.md.html @@ -38,11 +38,11 @@ Copyright Year : 2019 -When doing a FragmentTransaction that includes both attach() +When doing a FragmentTransaction that includes both attach() and detach() operations being committed on the same fragment instance, it is a no-op. The reason for this is that the FragmentManager optimizes all operations within a single -transaction so the attach() and detach() cancel each other out +transaction so the attach() and detach() cancel each other out and neither is actually executed. To get the desired behavior, you should separate the attach() and detach() calls into separate FragmentTransactions. @@ -55,17 +55,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment:1.8.3") +implementation("androidx.fragment:fragment:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment:1.8.3' +implementation 'androidx.fragment:fragment:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment) # libs.versions.toml [versions] -fragment = "1.8.3" +fragment = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -77,7 +77,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.fragment:fragment](androidx_fragment_fragment.md.html). diff --git a/docs/checks/DialogFragmentCallbacksDetector.md.html b/docs/checks/DialogFragmentCallbacksDetector.md.html index 36dedb18..1aec5e8f 100644 --- a/docs/checks/DialogFragmentCallbacksDetector.md.html +++ b/docs/checks/DialogFragmentCallbacksDetector.md.html @@ -38,11 +38,11 @@ Copyright Year : 2021 -When using a `DialogFragment`, the `setOnCancelListener` and +When using a `DialogFragment`, the `setOnCancelListener` and `setOnDismissListener` callback functions within the `onCreateDialog` function __must not be used__ because the `DialogFragment` owns these callbacks. Instead the -respective `onCancel` and `onDismiss` functions can be used to +respective `onCancel` and `onDismiss` functions can be used to achieve the desired effect. (##) Example @@ -93,17 +93,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment:1.8.3") +implementation("androidx.fragment:fragment:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment:1.8.3' +implementation 'androidx.fragment:fragment:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment) # libs.versions.toml [versions] -fragment = "1.8.3" +fragment = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -115,7 +115,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.fragment:fragment](androidx_fragment_fragment.md.html). diff --git a/docs/checks/DisabledAllSafeBrowsing.md.html b/docs/checks/DisabledAllSafeBrowsing.md.html index 1689d579..d4054fe1 100644 --- a/docs/checks/DisabledAllSafeBrowsing.md.html +++ b/docs/checks/DisabledAllSafeBrowsing.md.html @@ -89,17 +89,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -111,7 +111,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/DoNotCallProviders.md.html b/docs/checks/DoNotCallProviders.md.html index 80079bc3..01c5f13d 100644 --- a/docs/checks/DoNotCallProviders.md.html +++ b/docs/checks/DoNotCallProviders.md.html @@ -23,14 +23,14 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) Affects -: Kotlin and Java files and test sources +: Kotlin and Java files Editing : This check runs on the fly in the IDE editor Implementation @@ -132,17 +132,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -154,7 +154,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DoNotCallViewToString.md.html b/docs/checks/DoNotCallViewToString.md.html new file mode 100644 index 00000000..bec11f7e --- /dev/null +++ b/docs/checks/DoNotCallViewToString.md.html @@ -0,0 +1,145 @@ + +(#) Do not use `View.toString()` + +!!! ERROR: Do not use `View.toString()` + This is an error. + +Id +: `DoNotCallViewToString` +Summary +: Do not use `View.toString()` +Severity +: Error +Category +: Security +Platform +: Any +Vendor +: slack +Identifier +: slack-lint +Contact +: https://github.com/slackhq/slack-lints +Feedback +: https://github.com/slackhq/slack-lints +Min +: Lint 8.7+ +Compiled +: Lint 8.7+ +Artifact +: [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) + +Affects +: Kotlin and Java files and test sources +Editing +: This check runs on the fly in the IDE editor +Implementation +: [Source Code](https://github.com/slackhq/slack-lints/tree/main/slack-lint-checks/src/main/java/slack/lint/ui/DoNotCallViewToString.kt) +Copyright Year +: 2024 + +`View.toString()` and its overrides can often print surprisingly +detailed information about the current view state, and has led to PII +logging issues in the past. + +(##) Including + +!!! + This is not a built-in check. To include it, add the below dependency + to your project. This lint check is included in the lint documentation, + but the Android team may or may not agree with its recommendations. + +``` +// build.gradle.kts +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") + +// build.gradle +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' + +// build.gradle.kts with version catalogs: +lintChecks(libs.slack.lint.checks) + +# libs.versions.toml +[versions] +slack-lint-checks = "0.8.2" +[libraries] +# For clarity and text wrapping purposes the following declaration is +# shown split up across lines, but in TOML it needs to be on a single +# line (see https://github.com/toml-lang/toml/issues/516) so adjust +# when pasting into libs.versions.toml: +slack-lint-checks = { + module = "com.slack.lint:slack-lint-checks", + version.ref = "slack-lint-checks" +} +``` + +0.8.2 is the version this documentation was generated from; +there may be newer versions available. + +[Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Using a suppression annotation like this on the enclosing + element: + + ```kt + // Kotlin + @Suppress("DoNotCallViewToString") + fun method() { + problematicStatement() + } + ``` + + or + + ```java + // Java + @SuppressWarnings("DoNotCallViewToString") + void method() { + problematicStatement(); + } + ``` + +* Using a suppression comment like this on the line above: + + ```kt + //noinspection DoNotCallViewToString + problematicStatement() + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="DoNotCallViewToString" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'DoNotCallViewToString' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore DoNotCallViewToString ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/DoNotExposeEitherNetInRepositories.md.html b/docs/checks/DoNotExposeEitherNetInRepositories.md.html index ba259074..25362711 100644 --- a/docs/checks/DoNotExposeEitherNetInRepositories.md.html +++ b/docs/checks/DoNotExposeEitherNetInRepositories.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -121,17 +121,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -143,7 +143,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DoNotMock.md.html b/docs/checks/DoNotMock.md.html index 844cc11d..4839dc1b 100644 --- a/docs/checks/DoNotMock.md.html +++ b/docs/checks/DoNotMock.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -181,17 +181,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -203,7 +203,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DoNotMockAnything.md.html b/docs/checks/DoNotMockAnything.md.html index e2593d36..f28e3577 100644 --- a/docs/checks/DoNotMockAnything.md.html +++ b/docs/checks/DoNotMockAnything.md.html @@ -25,9 +25,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -111,17 +111,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -133,7 +133,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DoNotMockAutoValue.md.html b/docs/checks/DoNotMockAutoValue.md.html index a0c0bdd3..5f9bc8a2 100644 --- a/docs/checks/DoNotMockAutoValue.md.html +++ b/docs/checks/DoNotMockAutoValue.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -107,17 +107,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -129,7 +129,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DoNotMockDataClass.md.html b/docs/checks/DoNotMockDataClass.md.html index d535b235..63a913c9 100644 --- a/docs/checks/DoNotMockDataClass.md.html +++ b/docs/checks/DoNotMockDataClass.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -107,17 +107,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -129,7 +129,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DoNotMockObjectClass.md.html b/docs/checks/DoNotMockObjectClass.md.html index 24010871..eb73da0d 100644 --- a/docs/checks/DoNotMockObjectClass.md.html +++ b/docs/checks/DoNotMockObjectClass.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -107,17 +107,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -129,7 +129,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DoNotMockPlatformTypes.md.html b/docs/checks/DoNotMockPlatformTypes.md.html index 69c956aa..0b372813 100644 --- a/docs/checks/DoNotMockPlatformTypes.md.html +++ b/docs/checks/DoNotMockPlatformTypes.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -111,17 +111,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -133,7 +133,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DoNotMockRecordClass.md.html b/docs/checks/DoNotMockRecordClass.md.html index d60153a4..3379cd74 100644 --- a/docs/checks/DoNotMockRecordClass.md.html +++ b/docs/checks/DoNotMockRecordClass.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -107,17 +107,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -129,7 +129,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/DoNotMockSealedClass.md.html b/docs/checks/DoNotMockSealedClass.md.html index d67bbbc6..70a50638 100644 --- a/docs/checks/DoNotMockSealedClass.md.html +++ b/docs/checks/DoNotMockSealedClass.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -108,17 +108,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -130,7 +130,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/EmptyNavDeepLink.md.html b/docs/checks/EmptyNavDeepLink.md.html index ab4d9c50..a8ad5f1e 100644 --- a/docs/checks/EmptyNavDeepLink.md.html +++ b/docs/checks/EmptyNavDeepLink.md.html @@ -89,17 +89,17 @@ ``` // build.gradle.kts -implementation("androidx.navigation:navigation-common:2.8.1") +implementation("androidx.navigation:navigation-common:2.9.0-alpha03") // build.gradle -implementation 'androidx.navigation:navigation-common:2.8.1' +implementation 'androidx.navigation:navigation-common:2.9.0-alpha03' // build.gradle.kts with version catalogs: implementation(libs.navigation.common) # libs.versions.toml [versions] -navigation-common = "2.8.1" +navigation-common = "2.9.0-alpha03" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -111,7 +111,7 @@ } ``` -2.8.1 is the version this documentation was generated from; +2.9.0-alpha03 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.navigation:navigation-common](androidx_navigation_navigation-common.md.html). diff --git a/docs/checks/ErrorProneDoNotMockUsage.md.html b/docs/checks/ErrorProneDoNotMockUsage.md.html index a87a76e4..24c9794d 100644 --- a/docs/checks/ErrorProneDoNotMockUsage.md.html +++ b/docs/checks/ErrorProneDoNotMockUsage.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -108,17 +108,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -130,7 +130,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/ExceptionMessage.md.html b/docs/checks/ExceptionMessage.md.html index 5240f298..10f7ad1b 100644 --- a/docs/checks/ExceptionMessage.md.html +++ b/docs/checks/ExceptionMessage.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -89,17 +89,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -111,7 +111,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/ExpiredTargetSdkVersion.md.html b/docs/checks/ExpiredTargetSdkVersion.md.html index 00674bcc..e3bd7817 100644 --- a/docs/checks/ExpiredTargetSdkVersion.md.html +++ b/docs/checks/ExpiredTargetSdkVersion.md.html @@ -35,10 +35,10 @@ Copyright Year : 2014 -Configuring your app to target a recent API level ensures that users -benefit from significant security and performance improvements, while -still allowing your app to run on older Android versions (down to the -`minSdkVersion`). +Configuring your app or sdk to target a recent API level ensures that +users benefit from significant security and performance improvements, +while still allowing your app to run on older Android versions (down to +the `minSdkVersion`). To update your `targetSdkVersion`, follow the steps from "Meeting Google Play requirements for target API level", diff --git a/docs/checks/ExpiringTargetSdkVersion.md.html b/docs/checks/ExpiringTargetSdkVersion.md.html index 6c0c80a0..98dc5f9f 100644 --- a/docs/checks/ExpiringTargetSdkVersion.md.html +++ b/docs/checks/ExpiringTargetSdkVersion.md.html @@ -33,10 +33,10 @@ Copyright Year : 2014 -Configuring your app to target a recent API level ensures that users -benefit from significant security and performance improvements, while -still allowing your app to run on older Android versions (down to the -`minSdkVersion`). +Configuring your app or sdk to target a recent API level ensures that +users benefit from significant security and performance improvements, +while still allowing your app or sdk to run on older Android versions +(down to the `minSdkVersion`). To update your `targetSdkVersion`, follow the steps from "Meeting Google Play requirements for target API level", diff --git a/docs/checks/ExposedRootPath.md.html b/docs/checks/ExposedRootPath.md.html index 7b458f41..1e3e4985 100644 --- a/docs/checks/ExposedRootPath.md.html +++ b/docs/checks/ExposedRootPath.md.html @@ -87,17 +87,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -109,7 +109,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/FindViewByIdCast.md.html b/docs/checks/FindViewByIdCast.md.html index 1bcd6956..fb8e7f31 100644 --- a/docs/checks/FindViewByIdCast.md.html +++ b/docs/checks/FindViewByIdCast.md.html @@ -61,23 +61,23 @@ import android.view.View; -import test.pkg.myapplication.R; +import test.pkg.R; public class ImplicitCastTest2 extends MyActivityStub { public void test() { checkNotNull1(findViewById(R.id.textView)).setAlpha(0.5f); // WARN - checkNotNull2(findViewById(R.id.textView)).setAlpha(0.5f); // OK - checkNotNull3(findViewById(R.id.textView)).setAlpha(0.5f); // OK - checkNotNull1(findViewById(R.id.textView)); // OK - checkNotNull2(findViewById(R.id.textView)); // OK - checkNotNull3(findViewById(R.id.textView)); // OK - checkNotNull1((View)findViewById(R.id.textView)); // OK - checkNotNull2((View)findViewById(R.id.textView)); // OK - checkNotNull3((View)findViewById(R.id.textView)); // OK - View view1 = checkNotNull1(findViewById(R.id.textView)); // OK - View view2 = checkNotNull2(findViewById(R.id.textView)); // OK - View view3 = checkNotNull3(findViewById(R.id.textView)); // OK - findViewById(R.id.textView); // OK + checkNotNull2(findViewById(R.id.textView)).setAlpha(0.5f); // OK 1 + checkNotNull3(findViewById(R.id.textView)).setAlpha(0.5f); // OK 2 + checkNotNull1(findViewById(R.id.textView)); // OK 3 + checkNotNull2(findViewById(R.id.textView)); // OK 4 + checkNotNull3(findViewById(R.id.textView)); // OK 5 + checkNotNull1((View)findViewById(R.id.textView)); // OK 6 + checkNotNull2((View)findViewById(R.id.textView)); // OK 7 + checkNotNull3((View)findViewById(R.id.textView)); // OK 8 + View view1 = checkNotNull1(findViewById(R.id.textView)); // OK 9 + View view2 = checkNotNull2(findViewById(R.id.textView)); // OK 10 + View view3 = checkNotNull3(findViewById(R.id.textView)); // OK 11 + findViewById(R.id.textView); // OK 12 } public static T checkNotNull1(T reference) { diff --git a/docs/checks/FlowOperatorInvokedInComposition.md.html b/docs/checks/FlowOperatorInvokedInComposition.md.html index 75accd92..9677d01f 100644 --- a/docs/checks/FlowOperatorInvokedInComposition.md.html +++ b/docs/checks/FlowOperatorInvokedInComposition.md.html @@ -238,17 +238,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -260,9 +260,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/FragmentAddMenuProvider.md.html b/docs/checks/FragmentAddMenuProvider.md.html index 66874998..5c450f4a 100644 --- a/docs/checks/FragmentAddMenuProvider.md.html +++ b/docs/checks/FragmentAddMenuProvider.md.html @@ -38,10 +38,10 @@ Copyright Year : 2019 -The Fragment lifecycle can result in a Fragment being active +The Fragment lifecycle can result in a Fragment being active longer than its view. This can lead to unexpected behavior from lifecycle aware objects remaining active longer than the -Fragment's view. To solve this issue, +Fragment's view. To solve this issue, getViewLifecycleOwner() should be used as a LifecycleOwner rather than the Fragment instance once it is safe to access the view lifecycle in a Fragment's onCreateView, onViewCreated, @@ -55,17 +55,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment:1.8.3") +implementation("androidx.fragment:fragment:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment:1.8.3' +implementation 'androidx.fragment:fragment:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment) # libs.versions.toml [versions] -fragment = "1.8.3" +fragment = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -77,7 +77,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.fragment:fragment](androidx_fragment_fragment.md.html). diff --git a/docs/checks/FragmentBackPressedCallback.md.html b/docs/checks/FragmentBackPressedCallback.md.html index c15e4ff5..8b2a2f36 100644 --- a/docs/checks/FragmentBackPressedCallback.md.html +++ b/docs/checks/FragmentBackPressedCallback.md.html @@ -38,10 +38,10 @@ Copyright Year : 2019 -The Fragment lifecycle can result in a Fragment being active +The Fragment lifecycle can result in a Fragment being active longer than its view. This can lead to unexpected behavior from lifecycle aware objects remaining active longer than the -Fragment's view. To solve this issue, +Fragment's view. To solve this issue, getViewLifecycleOwner() should be used as a LifecycleOwner rather than the Fragment instance once it is safe to access the view lifecycle in a Fragment's onCreateView, onViewCreated, @@ -55,17 +55,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment:1.8.3") +implementation("androidx.fragment:fragment:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment:1.8.3' +implementation 'androidx.fragment:fragment:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment) # libs.versions.toml [versions] -fragment = "1.8.3" +fragment = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -77,7 +77,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.fragment:fragment](androidx_fragment_fragment.md.html). diff --git a/docs/checks/FragmentConstructorInjection.md.html b/docs/checks/FragmentConstructorInjection.md.html index c9ad4b85..3debfd3f 100644 --- a/docs/checks/FragmentConstructorInjection.md.html +++ b/docs/checks/FragmentConstructorInjection.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -129,17 +129,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -151,7 +151,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/FragmentFieldInjection.md.html b/docs/checks/FragmentFieldInjection.md.html index e20d1896..8f4b70a3 100644 --- a/docs/checks/FragmentFieldInjection.md.html +++ b/docs/checks/FragmentFieldInjection.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -106,17 +106,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -128,7 +128,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/FragmentGradleConfiguration-2.md.html b/docs/checks/FragmentGradleConfiguration-2.md.html index 3bac4502..31cda27a 100644 --- a/docs/checks/FragmentGradleConfiguration-2.md.html +++ b/docs/checks/FragmentGradleConfiguration-2.md.html @@ -40,7 +40,7 @@ Copyright Year : 2019 -The fragment-testing-manifest library defines an EmptyActivity +The fragment-testing-manifest library defines an EmptyActivity used when using FragmentScenario. Howver, it only needs to be present in testing configurations therefore use this dependency with the debugImplementation configuration. @@ -81,17 +81,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment-testing-manifest:1.8.3") +implementation("androidx.fragment:fragment-testing-manifest:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment-testing-manifest:1.8.3' +implementation 'androidx.fragment:fragment-testing-manifest:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment.testing.manifest) # libs.versions.toml [versions] -fragment-testing-manifest = "1.8.3" +fragment-testing-manifest = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -103,7 +103,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.fragment:fragment-testing-manifest](androidx_fragment_fragment-testing-manifest.md.html). diff --git a/docs/checks/FragmentGradleConfiguration.md.html b/docs/checks/FragmentGradleConfiguration.md.html index b69ed05e..83463537 100644 --- a/docs/checks/FragmentGradleConfiguration.md.html +++ b/docs/checks/FragmentGradleConfiguration.md.html @@ -40,7 +40,7 @@ Copyright Year : 2019 -The fragment-testing library contains a FragmentScenario class that +The fragment-testing library contains a FragmentScenario class that creates an Activity that must exist in the runtime APK. To include the fragment-testing library in the runtime APK it must be added using the debugImplementation @@ -82,17 +82,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment-testing:1.8.3") +implementation("androidx.fragment:fragment-testing:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment-testing:1.8.3' +implementation 'androidx.fragment:fragment-testing:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment.testing) # libs.versions.toml [versions] -fragment-testing = "1.8.3" +fragment-testing = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -104,7 +104,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.fragment:fragment-testing](androidx_fragment_fragment-testing.md.html). diff --git a/docs/checks/FragmentLiveDataObserve.md.html b/docs/checks/FragmentLiveDataObserve.md.html index 0f229020..500bc881 100644 --- a/docs/checks/FragmentLiveDataObserve.md.html +++ b/docs/checks/FragmentLiveDataObserve.md.html @@ -38,12 +38,12 @@ Copyright Year : 2019 -When observing a LiveData object from a fragment's onCreateView, - onViewCreated, onActivityCreated, or onViewStateRestored method +When observing a LiveData object from a fragment's onCreateView, + onViewCreated, onActivityCreated, or onViewStateRestored method getViewLifecycleOwner() should be used as the LifecycleOwner rather than the Fragment instance. The -Fragment lifecycle can result in the Fragment being -active longer than its view. This can lead to unexpected behavior from +Fragment lifecycle can result in the Fragment being +active longer than its view. This can lead to unexpected behavior from LiveData objects being observed longer than the Fragment's view is active. @@ -55,17 +55,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment:1.8.3") +implementation("androidx.fragment:fragment:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment:1.8.3' +implementation 'androidx.fragment:fragment:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment) # libs.versions.toml [versions] -fragment = "1.8.3" +fragment = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -77,7 +77,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.fragment:fragment](androidx_fragment_fragment.md.html). diff --git a/docs/checks/FragmentTagUsage.md.html b/docs/checks/FragmentTagUsage.md.html index cc873e11..c3afeb0c 100644 --- a/docs/checks/FragmentTagUsage.md.html +++ b/docs/checks/FragmentTagUsage.md.html @@ -40,10 +40,10 @@ Copyright Year : 2019 -FragmentContainerView replaces the tag as the preferred +FragmentContainerView replaces the tag as the preferred way of adding fragments via XML. Unlike the tag, FragmentContainerView uses a normal -`FragmentTransaction` under the hood to add the initial fragment, +`FragmentTransaction` under the hood to add the initial fragment, allowing further FragmentTransaction operations on the FragmentContainerView and providing a consistent timing for lifecycle events. @@ -89,17 +89,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment:1.8.3") +implementation("androidx.fragment:fragment:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment:1.8.3' +implementation 'androidx.fragment:fragment:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment) # libs.versions.toml [versions] -fragment = "1.8.3" +fragment = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -111,7 +111,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.fragment:fragment](androidx_fragment_fragment.md.html). diff --git a/docs/checks/FrequentlyChangedStateReadInComposition.md.html b/docs/checks/FrequentlyChangedStateReadInComposition.md.html index a28b1895..31325687 100644 --- a/docs/checks/FrequentlyChangedStateReadInComposition.md.html +++ b/docs/checks/FrequentlyChangedStateReadInComposition.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.foundation:foundation-android](androidx_compose_foundation_foundation-android.md.html) @@ -126,17 +126,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.foundation:foundation-android:1.8.0-alpha02") +implementation("androidx.compose.foundation:foundation-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.foundation:foundation-android:1.8.0-alpha02' +implementation 'androidx.compose.foundation:foundation-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.foundation.android) # libs.versions.toml [versions] -foundation-android = "1.8.0-alpha02" +foundation-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -148,9 +148,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.foundation:foundation-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.foundation:foundation-android](androidx_compose_foundation_foundation-android.md.html). (##) Suppressing diff --git a/docs/checks/FullyQualifiedResource.md.html b/docs/checks/FullyQualifiedResource.md.html index 39f0ac27..84740560 100644 --- a/docs/checks/FullyQualifiedResource.md.html +++ b/docs/checks/FullyQualifiedResource.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -41,7 +41,7 @@ : 2022 Resources should use an import alias instead of being fully qualified. -For example: +For example: import slack.l10n.R as L10nR ... ...getString(L10nR.string.app_name) @@ -112,17 +112,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -134,7 +134,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/GuavaChecksUsed.md.html b/docs/checks/GuavaChecksUsed.md.html index 739367a1..97d9d996 100644 --- a/docs/checks/GuavaChecksUsed.md.html +++ b/docs/checks/GuavaChecksUsed.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -111,17 +111,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -133,7 +133,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/GuavaPreconditionsUsedInKotlin.md.html b/docs/checks/GuavaPreconditionsUsedInKotlin.md.html index f28b6d78..1540f831 100644 --- a/docs/checks/GuavaPreconditionsUsedInKotlin.md.html +++ b/docs/checks/GuavaPreconditionsUsedInKotlin.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -40,7 +40,7 @@ Copyright Year : 2021 -All Kotlin classes that require precondition checks should use the +All Kotlin classes that require precondition checks should use the preconditions checks that are available in the Kotlin standard library in Preconditions.kt. @@ -112,17 +112,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -134,7 +134,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/IdleBatteryChargingConstraints.md.html b/docs/checks/IdleBatteryChargingConstraints.md.html index e505aa1d..eec73225 100644 --- a/docs/checks/IdleBatteryChargingConstraints.md.html +++ b/docs/checks/IdleBatteryChargingConstraints.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.work:work-runtime](androidx_work_work-runtime.md.html) @@ -85,17 +85,17 @@ ``` // build.gradle.kts -implementation("androidx.work:work-runtime:2.10.0-alpha04") +implementation("androidx.work:work-runtime:2.10.0") // build.gradle -implementation 'androidx.work:work-runtime:2.10.0-alpha04' +implementation 'androidx.work:work-runtime:2.10.0' // build.gradle.kts with version catalogs: implementation(libs.work.runtime) # libs.versions.toml [versions] -work-runtime = "2.10.0-alpha04" +work-runtime = "2.10.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -107,7 +107,7 @@ } ``` -2.10.0-alpha04 is the version this documentation was generated from; +2.10.0 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.work:work-runtime](androidx_work_work-runtime.md.html). diff --git a/docs/checks/InclusiveNaming.md.html b/docs/checks/InclusiveNaming.md.html index da8d6002..6143f604 100644 --- a/docs/checks/InclusiveNaming.md.html +++ b/docs/checks/InclusiveNaming.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -68,8 +68,8 @@ id's must be unique, so you cannot combine these libraries. Also defined in: * InclusiveNaming: Use inclusive naming (this issue) -* [InclusiveNaming from com.slack.lint:slack-lint-checks:0.7.4](InclusiveNaming.md.html) -* [InclusiveNaming from com.slack.lint:slack-lint-checks:0.7.4](InclusiveNaming.md.html) +* [InclusiveNaming from com.slack.lint:slack-lint-checks:0.8.2](InclusiveNaming.md.html) +* [InclusiveNaming from com.slack.lint:slack-lint-checks:0.8.2](InclusiveNaming.md.html) (##) Including @@ -81,17 +81,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -103,7 +103,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/IncorrectChainMarginsUsage.md.html b/docs/checks/IncorrectChainMarginsUsage.md.html index 43cfcb27..4ca6cc26 100644 --- a/docs/checks/IncorrectChainMarginsUsage.md.html +++ b/docs/checks/IncorrectChainMarginsUsage.md.html @@ -21,9 +21,9 @@ Feedback : https://issuetracker.google.com/issues/new?component=323867&template=1023345 Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.constraintlayout:constraintlayout-compose](androidx_constraintlayout_constraintlayout-compose.md.html) @@ -52,17 +52,17 @@ ``` // build.gradle.kts -implementation("androidx.constraintlayout:constraintlayout-compose:1.1.0-beta01") +implementation("androidx.constraintlayout:constraintlayout-compose:1.1.0") // build.gradle -implementation 'androidx.constraintlayout:constraintlayout-compose:1.1.0-beta01' +implementation 'androidx.constraintlayout:constraintlayout-compose:1.1.0' // build.gradle.kts with version catalogs: implementation(libs.constraintlayout.compose) # libs.versions.toml [versions] -constraintlayout-compose = "1.1.0-beta01" +constraintlayout-compose = "1.1.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -74,7 +74,7 @@ } ``` -1.1.0-beta01 is the version this documentation was generated from; +1.1.0 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.constraintlayout:constraintlayout-compose](androidx_constraintlayout_constraintlayout-compose.md.html). diff --git a/docs/checks/IncorrectMatchParentUsage.md.html b/docs/checks/IncorrectMatchParentUsage.md.html index a697535e..07c8309f 100644 --- a/docs/checks/IncorrectMatchParentUsage.md.html +++ b/docs/checks/IncorrectMatchParentUsage.md.html @@ -21,9 +21,9 @@ Feedback : https://issuetracker.google.com/issues/new?component=323867&template=1023345 Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.constraintlayout:constraintlayout-compose](androidx_constraintlayout_constraintlayout-compose.md.html) @@ -51,17 +51,17 @@ ``` // build.gradle.kts -implementation("androidx.constraintlayout:constraintlayout-compose:1.1.0-beta01") +implementation("androidx.constraintlayout:constraintlayout-compose:1.1.0") // build.gradle -implementation 'androidx.constraintlayout:constraintlayout-compose:1.1.0-beta01' +implementation 'androidx.constraintlayout:constraintlayout-compose:1.1.0' // build.gradle.kts with version catalogs: implementation(libs.constraintlayout.compose) # libs.versions.toml [versions] -constraintlayout-compose = "1.1.0-beta01" +constraintlayout-compose = "1.1.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -73,7 +73,7 @@ } ``` -1.1.0-beta01 is the version this documentation was generated from; +1.1.0 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.constraintlayout:constraintlayout-compose](androidx_constraintlayout_constraintlayout-compose.md.html). diff --git a/docs/checks/IncorrectReferencesDeclaration.md.html b/docs/checks/IncorrectReferencesDeclaration.md.html index 09b04f59..667b073c 100644 --- a/docs/checks/IncorrectReferencesDeclaration.md.html +++ b/docs/checks/IncorrectReferencesDeclaration.md.html @@ -21,9 +21,9 @@ Feedback : https://issuetracker.google.com/issues/new?component=323867&template=1023345 Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.constraintlayout:constraintlayout-compose](androidx_constraintlayout_constraintlayout-compose.md.html) @@ -114,17 +114,17 @@ ``` // build.gradle.kts -implementation("androidx.constraintlayout:constraintlayout-compose:1.1.0-beta01") +implementation("androidx.constraintlayout:constraintlayout-compose:1.1.0") // build.gradle -implementation 'androidx.constraintlayout:constraintlayout-compose:1.1.0-beta01' +implementation 'androidx.constraintlayout:constraintlayout-compose:1.1.0' // build.gradle.kts with version catalogs: implementation(libs.constraintlayout.compose) # libs.versions.toml [versions] -constraintlayout-compose = "1.1.0-beta01" +constraintlayout-compose = "1.1.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -136,7 +136,7 @@ } ``` -1.1.0-beta01 is the version this documentation was generated from; +1.1.0 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.constraintlayout:constraintlayout-compose](androidx_constraintlayout_constraintlayout-compose.md.html). diff --git a/docs/checks/InflationInItemDecoration.md.html b/docs/checks/InflationInItemDecoration.md.html new file mode 100644 index 00000000..61da7f55 --- /dev/null +++ b/docs/checks/InflationInItemDecoration.md.html @@ -0,0 +1,146 @@ + +(#) Avoid inflating a view to display text + +!!! WARNING: Avoid inflating a view to display text + This is a warning. + +Id +: `InflationInItemDecoration` +Summary +: Avoid inflating a view to display text +Severity +: Warning +Category +: Accessibility +Platform +: Any +Vendor +: slack +Identifier +: slack-lint +Contact +: https://github.com/slackhq/slack-lints +Feedback +: https://github.com/slackhq/slack-lints +Min +: Lint 8.7+ +Compiled +: Lint 8.7+ +Artifact +: [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) + +Affects +: Kotlin and Java files and test sources +Editing +: This check runs on the fly in the IDE editor +Implementation +: [Source Code](https://github.com/slackhq/slack-lints/tree/main/slack-lint-checks/src/main/java/slack/lint/ui/ItemDecorationViewBindingDetector.kt) +Copyright Year +: 2024 + +ViewBinding should not be used in `ItemDecoration`. If an inflated view +contains meaningful textual information, it will not be visible to +TalkBack. This means that screen reader users will not be able to know +what is on the screen. + +(##) Including + +!!! + This is not a built-in check. To include it, add the below dependency + to your project. This lint check is included in the lint documentation, + but the Android team may or may not agree with its recommendations. + +``` +// build.gradle.kts +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") + +// build.gradle +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' + +// build.gradle.kts with version catalogs: +lintChecks(libs.slack.lint.checks) + +# libs.versions.toml +[versions] +slack-lint-checks = "0.8.2" +[libraries] +# For clarity and text wrapping purposes the following declaration is +# shown split up across lines, but in TOML it needs to be on a single +# line (see https://github.com/toml-lang/toml/issues/516) so adjust +# when pasting into libs.versions.toml: +slack-lint-checks = { + module = "com.slack.lint:slack-lint-checks", + version.ref = "slack-lint-checks" +} +``` + +0.8.2 is the version this documentation was generated from; +there may be newer versions available. + +[Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Using a suppression annotation like this on the enclosing + element: + + ```kt + // Kotlin + @Suppress("InflationInItemDecoration") + fun method() { + problematicStatement() + } + ``` + + or + + ```java + // Java + @SuppressWarnings("InflationInItemDecoration") + void method() { + problematicStatement(); + } + ``` + +* Using a suppression comment like this on the line above: + + ```kt + //noinspection InflationInItemDecoration + problematicStatement() + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="InflationInItemDecoration" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'InflationInItemDecoration' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore InflationInItemDecoration ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/InjectInJava.md.html b/docs/checks/InjectInJava.md.html index 01fcde65..6180fa19 100644 --- a/docs/checks/InjectInJava.md.html +++ b/docs/checks/InjectInJava.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -133,17 +133,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -155,7 +155,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/InsecureDnsSdkLevel.md.html b/docs/checks/InsecureDnsSdkLevel.md.html index 5c96ac50..3e90d890 100644 --- a/docs/checks/InsecureDnsSdkLevel.md.html +++ b/docs/checks/InsecureDnsSdkLevel.md.html @@ -87,17 +87,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -109,7 +109,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/InsecurePermissionProtectionLevel.md.html b/docs/checks/InsecurePermissionProtectionLevel.md.html index 61ad2704..6ae6aa7c 100644 --- a/docs/checks/InsecurePermissionProtectionLevel.md.html +++ b/docs/checks/InsecurePermissionProtectionLevel.md.html @@ -90,17 +90,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -112,7 +112,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/InsecureStickyBroadcastsMethod.md.html b/docs/checks/InsecureStickyBroadcastsMethod.md.html index f55512a4..ace487fa 100644 --- a/docs/checks/InsecureStickyBroadcastsMethod.md.html +++ b/docs/checks/InsecureStickyBroadcastsMethod.md.html @@ -94,17 +94,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -116,7 +116,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/InsecureStickyBroadcastsPermission.md.html b/docs/checks/InsecureStickyBroadcastsPermission.md.html index b69736bc..743b7699 100644 --- a/docs/checks/InsecureStickyBroadcastsPermission.md.html +++ b/docs/checks/InsecureStickyBroadcastsPermission.md.html @@ -86,17 +86,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -108,7 +108,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/InvalidColorHexValue.md.html b/docs/checks/InvalidColorHexValue.md.html index 0d953b8a..67126b0c 100644 --- a/docs/checks/InvalidColorHexValue.md.html +++ b/docs/checks/InvalidColorHexValue.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.ui:ui-graphics-android](androidx_compose_ui_ui-graphics-android.md.html) @@ -93,17 +93,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-graphics-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-graphics-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-graphics-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-graphics-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.graphics.android) # libs.versions.toml [versions] -ui-graphics-android = "1.8.0-alpha02" +ui-graphics-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -115,9 +115,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-graphics-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-graphics-android](androidx_compose_ui_ui-graphics-android.md.html). (##) Suppressing diff --git a/docs/checks/InvalidFragmentVersionForActivityResult.md.html b/docs/checks/InvalidFragmentVersionForActivityResult.md.html index 9e939228..df8a35f1 100644 --- a/docs/checks/InvalidFragmentVersionForActivityResult.md.html +++ b/docs/checks/InvalidFragmentVersionForActivityResult.md.html @@ -42,8 +42,8 @@ Copyright Year : 2020 -In order to use the ActivityResult APIs you must upgrade your - Fragment version to 1.3.0. Previous versions of FragmentActivity +In order to use the ActivityResult APIs you must upgrade your + Fragment version to 1.3.0. Previous versions of FragmentActivity failed to call super.onRequestPermissionsResult() and used invalid request codes. @@ -93,17 +93,17 @@ ``` // build.gradle.kts -implementation("androidx.activity:activity:1.10.0-alpha02") +implementation("androidx.activity:activity:1.10.0-beta01") // build.gradle -implementation 'androidx.activity:activity:1.10.0-alpha02' +implementation 'androidx.activity:activity:1.10.0-beta01' // build.gradle.kts with version catalogs: implementation(libs.activity) # libs.versions.toml [versions] -activity = "1.10.0-alpha02" +activity = "1.10.0-beta01" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -115,7 +115,7 @@ } ``` -1.10.0-alpha02 is the version this documentation was generated from; +1.10.0-beta01 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.activity:activity](androidx_activity_activity.md.html). diff --git a/docs/checks/InvalidLanguageTagDelimiter.md.html b/docs/checks/InvalidLanguageTagDelimiter.md.html index 4456c308..3f360d30 100644 --- a/docs/checks/InvalidLanguageTagDelimiter.md.html +++ b/docs/checks/InvalidLanguageTagDelimiter.md.html @@ -21,9 +21,9 @@ Feedback : https://issuetracker.google.com/issues/new?component=779818 Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.ui:ui-text-android](androidx_compose_ui_ui-text-android.md.html) @@ -83,17 +83,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-text-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-text-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-text-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-text-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.text.android) # libs.versions.toml [versions] -ui-text-android = "1.8.0-alpha02" +ui-text-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -105,9 +105,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-text-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-text-android](androidx_compose_ui_ui-text-android.md.html). (##) Suppressing diff --git a/docs/checks/InvalidPeriodicWorkRequestInterval.md.html b/docs/checks/InvalidPeriodicWorkRequestInterval.md.html index b551f236..f39acdcf 100644 --- a/docs/checks/InvalidPeriodicWorkRequestInterval.md.html +++ b/docs/checks/InvalidPeriodicWorkRequestInterval.md.html @@ -25,7 +25,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.work:work-runtime](androidx_work_work-runtime.md.html) @@ -97,17 +97,17 @@ ``` // build.gradle.kts -implementation("androidx.work:work-runtime:2.10.0-alpha04") +implementation("androidx.work:work-runtime:2.10.0") // build.gradle -implementation 'androidx.work:work-runtime:2.10.0-alpha04' +implementation 'androidx.work:work-runtime:2.10.0' // build.gradle.kts with version catalogs: implementation(libs.work.runtime) # libs.versions.toml [versions] -work-runtime = "2.10.0-alpha04" +work-runtime = "2.10.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -119,7 +119,7 @@ } ``` -2.10.0-alpha04 is the version this documentation was generated from; +2.10.0 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.work:work-runtime](androidx_work_work-runtime.md.html). diff --git a/docs/checks/InvalidUseOfOnBackPressed.md.html b/docs/checks/InvalidUseOfOnBackPressed.md.html index bbf3c8e4..db69de73 100644 --- a/docs/checks/InvalidUseOfOnBackPressed.md.html +++ b/docs/checks/InvalidUseOfOnBackPressed.md.html @@ -99,17 +99,17 @@ ``` // build.gradle.kts -implementation("androidx.activity:activity:1.10.0-alpha02") +implementation("androidx.activity:activity:1.10.0-beta01") // build.gradle -implementation 'androidx.activity:activity:1.10.0-alpha02' +implementation 'androidx.activity:activity:1.10.0-beta01' // build.gradle.kts with version catalogs: implementation(libs.activity) # libs.versions.toml [versions] -activity = "1.10.0-alpha02" +activity = "1.10.0-beta01" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -121,7 +121,7 @@ } ``` -1.10.0-alpha02 is the version this documentation was generated from; +1.10.0-beta01 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.activity:activity](androidx_activity_activity.md.html). diff --git a/docs/checks/JavaOnlyDetector.md.html b/docs/checks/JavaOnlyDetector.md.html index 7f7df7c1..971cd110 100644 --- a/docs/checks/JavaOnlyDetector.md.html +++ b/docs/checks/JavaOnlyDetector.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -98,17 +98,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -120,7 +120,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/KotlinPairNotCreated.md.html b/docs/checks/KotlinPairNotCreated.md.html index 437c87a6..30493099 100644 --- a/docs/checks/KotlinPairNotCreated.md.html +++ b/docs/checks/KotlinPairNotCreated.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -93,17 +93,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -115,7 +115,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/LaunchDuringComposition.md.html b/docs/checks/LaunchDuringComposition.md.html index 5b4e17e0..89c64ab2 100644 --- a/docs/checks/LaunchDuringComposition.md.html +++ b/docs/checks/LaunchDuringComposition.md.html @@ -147,17 +147,17 @@ ``` // build.gradle.kts -implementation("androidx.activity:activity-compose:1.10.0-alpha02") +implementation("androidx.activity:activity-compose:1.10.0-beta01") // build.gradle -implementation 'androidx.activity:activity-compose:1.10.0-alpha02' +implementation 'androidx.activity:activity-compose:1.10.0-beta01' // build.gradle.kts with version catalogs: implementation(libs.activity.compose) # libs.versions.toml [versions] -activity-compose = "1.10.0-alpha02" +activity-compose = "1.10.0-beta01" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -169,7 +169,7 @@ } ``` -1.10.0-alpha02 is the version this documentation was generated from; +1.10.0-beta01 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.activity:activity-compose](androidx_activity_activity-compose.md.html). diff --git a/docs/checks/LintImplPsiEquals.md.html b/docs/checks/LintImplPsiEquals.md.html index 8030b0d1..cde432ee 100644 --- a/docs/checks/LintImplPsiEquals.md.html +++ b/docs/checks/LintImplPsiEquals.md.html @@ -32,7 +32,8 @@ : 2020 You should never compare two PSI elements for equality with `equals`; -use `isEquivalentTo(PsiElement)` instead. +use `PsiEquivalenceUtil.areElementsEquivalent(PsiElement, PsiElement)` +instead. (##) Example diff --git a/docs/checks/MainScopeUsage.md.html b/docs/checks/MainScopeUsage.md.html index 66e62ce0..52906e7a 100644 --- a/docs/checks/MainScopeUsage.md.html +++ b/docs/checks/MainScopeUsage.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -87,17 +87,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -109,7 +109,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MissingAutoVerifyAttribute.md.html b/docs/checks/MissingAutoVerifyAttribute.md.html index 76c38ddf..21d04985 100644 --- a/docs/checks/MissingAutoVerifyAttribute.md.html +++ b/docs/checks/MissingAutoVerifyAttribute.md.html @@ -93,17 +93,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -115,7 +115,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/MissingColorAlphaChannel.md.html b/docs/checks/MissingColorAlphaChannel.md.html index da184c9c..f28f9f57 100644 --- a/docs/checks/MissingColorAlphaChannel.md.html +++ b/docs/checks/MissingColorAlphaChannel.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.ui:ui-graphics-android](androidx_compose_ui_ui-graphics-android.md.html) @@ -109,17 +109,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-graphics-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-graphics-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-graphics-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-graphics-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.graphics.android) # libs.versions.toml [versions] -ui-graphics-android = "1.8.0-alpha02" +ui-graphics-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -131,9 +131,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-graphics-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-graphics-android](androidx_compose_ui_ui-graphics-android.md.html). (##) Suppressing diff --git a/docs/checks/MissingKeepAnnotation-2.md.html b/docs/checks/MissingKeepAnnotation-2.md.html new file mode 100644 index 00000000..eb7b78c7 --- /dev/null +++ b/docs/checks/MissingKeepAnnotation-2.md.html @@ -0,0 +1,151 @@ + +(#) In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep + +!!! WARNING: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep + This is a warning. + +Id +: `MissingKeepAnnotation` +Summary +: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep +Severity +: Warning +Category +: Correctness +Platform +: Any +Vendor +: Android Open Source Project +Identifier +: androidx.navigation.runtime +Feedback +: https://issuetracker.google.com/issues/new?component=409828 +Min +: Lint 8.0 and 8.1 +Compiled +: Lint 8.0 and 8.1 +Artifact +: [androidx.navigation:navigation-runtime](androidx_navigation_navigation-runtime.md.html) + +Affects +: Kotlin and Java files +Editing +: This check runs on the fly in the IDE editor +Implementation +: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/navigation/navigation-common-lint/src/main/java/androidx/navigation/common/lint/TypeSafeDestinationMissingAnnotationDetector.kt) +Copyright Year +: 2024 + +Type-safe nav arguments such as Enum types can get incorrectly +obfuscated in minified builds when not referenced directly. + +(##) Conflicts + +This issue id has also been used by other, unrelated lint checks. Issue +id's must be unique, so you cannot combine these libraries. Also defined +in: +* MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep (this issue) +* [MissingKeepAnnotation from androidx.navigation:navigation-compose:2.9.0-alpha03](MissingKeepAnnotation.md.html) +* [MissingKeepAnnotation from androidx.navigation:navigation-common:2.9.0-alpha03](MissingKeepAnnotation-3.md.html) + + +(##) Including + +!!! + This is not a built-in check. To include it, add the below dependency + to your project. + +``` +// build.gradle.kts +implementation("androidx.navigation:navigation-runtime:2.9.0-alpha03") + +// build.gradle +implementation 'androidx.navigation:navigation-runtime:2.9.0-alpha03' + +// build.gradle.kts with version catalogs: +implementation(libs.navigation.runtime) + +# libs.versions.toml +[versions] +navigation-runtime = "2.9.0-alpha03" +[libraries] +# For clarity and text wrapping purposes the following declaration is +# shown split up across lines, but in TOML it needs to be on a single +# line (see https://github.com/toml-lang/toml/issues/516) so adjust +# when pasting into libs.versions.toml: +navigation-runtime = { + module = "androidx.navigation:navigation-runtime", + version.ref = "navigation-runtime" +} +``` + +2.9.0-alpha03 is the version this documentation was generated from; +there may be newer versions available. + +[Additional details about androidx.navigation:navigation-runtime](androidx_navigation_navigation-runtime.md.html). +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Using a suppression annotation like this on the enclosing + element: + + ```kt + // Kotlin + @Suppress("MissingKeepAnnotation") + fun method() { + activity(...) + } + ``` + + or + + ```java + // Java + @SuppressWarnings("MissingKeepAnnotation") + void method() { + activity(...); + } + ``` + +* Using a suppression comment like this on the line above: + + ```kt + //noinspection MissingKeepAnnotation + problematicStatement() + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="MissingKeepAnnotation" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'MissingKeepAnnotation' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore MissingKeepAnnotation ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/MissingKeepAnnotation-3.md.html b/docs/checks/MissingKeepAnnotation-3.md.html new file mode 100644 index 00000000..7de6f94b --- /dev/null +++ b/docs/checks/MissingKeepAnnotation-3.md.html @@ -0,0 +1,151 @@ + +(#) In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep + +!!! WARNING: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep + This is a warning. + +Id +: `MissingKeepAnnotation` +Summary +: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep +Severity +: Warning +Category +: Correctness +Platform +: Any +Vendor +: Android Open Source Project +Identifier +: androidx.navigation.common +Feedback +: https://issuetracker.google.com/issues/new?component=409828 +Min +: Lint 8.0 and 8.1 +Compiled +: Lint 8.0 and 8.1 +Artifact +: [androidx.navigation:navigation-common](androidx_navigation_navigation-common.md.html) + +Affects +: Kotlin and Java files +Editing +: This check runs on the fly in the IDE editor +Implementation +: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/navigation/navigation-common-lint/src/main/java/androidx/navigation/common/lint/TypeSafeDestinationMissingAnnotationDetector.kt) +Copyright Year +: 2024 + +Type-safe nav arguments such as Enum types can get incorrectly +obfuscated in minified builds when not referenced directly. + +(##) Conflicts + +This issue id has also been used by other, unrelated lint checks. Issue +id's must be unique, so you cannot combine these libraries. Also defined +in: +* MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep (this issue) +* [MissingKeepAnnotation from androidx.navigation:navigation-compose:2.9.0-alpha03](MissingKeepAnnotation.md.html) +* [MissingKeepAnnotation from androidx.navigation:navigation-runtime:2.9.0-alpha03](MissingKeepAnnotation-2.md.html) + + +(##) Including + +!!! + This is not a built-in check. To include it, add the below dependency + to your project. + +``` +// build.gradle.kts +implementation("androidx.navigation:navigation-common:2.9.0-alpha03") + +// build.gradle +implementation 'androidx.navigation:navigation-common:2.9.0-alpha03' + +// build.gradle.kts with version catalogs: +implementation(libs.navigation.common) + +# libs.versions.toml +[versions] +navigation-common = "2.9.0-alpha03" +[libraries] +# For clarity and text wrapping purposes the following declaration is +# shown split up across lines, but in TOML it needs to be on a single +# line (see https://github.com/toml-lang/toml/issues/516) so adjust +# when pasting into libs.versions.toml: +navigation-common = { + module = "androidx.navigation:navigation-common", + version.ref = "navigation-common" +} +``` + +2.9.0-alpha03 is the version this documentation was generated from; +there may be newer versions available. + +[Additional details about androidx.navigation:navigation-common](androidx_navigation_navigation-common.md.html). +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Using a suppression annotation like this on the enclosing + element: + + ```kt + // Kotlin + @Suppress("MissingKeepAnnotation") + fun method() { + navigation(...) + } + ``` + + or + + ```java + // Java + @SuppressWarnings("MissingKeepAnnotation") + void method() { + navigation(...); + } + ``` + +* Using a suppression comment like this on the line above: + + ```kt + //noinspection MissingKeepAnnotation + problematicStatement() + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="MissingKeepAnnotation" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'MissingKeepAnnotation' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore MissingKeepAnnotation ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/MissingKeepAnnotation.md.html b/docs/checks/MissingKeepAnnotation.md.html new file mode 100644 index 00000000..c765faa2 --- /dev/null +++ b/docs/checks/MissingKeepAnnotation.md.html @@ -0,0 +1,149 @@ + +(#) In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep + +!!! WARNING: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep + This is a warning. + +Id +: `MissingKeepAnnotation` +Summary +: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep +Severity +: Warning +Category +: Correctness +Platform +: Any +Vendor +: Jetpack Navigation Compose +Identifier +: androidx.navigation.compose +Min +: Lint 8.0 and 8.1 +Compiled +: Lint 8.0 and 8.1 +Artifact +: [androidx.navigation:navigation-compose](androidx_navigation_navigation-compose.md.html) + +Affects +: Kotlin and Java files +Editing +: This check runs on the fly in the IDE editor +Implementation +: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/navigation/navigation-common-lint/src/main/java/androidx/navigation/common/lint/TypeSafeDestinationMissingAnnotationDetector.kt) +Copyright Year +: 2024 + +Type-safe nav arguments such as Enum types can get incorrectly +obfuscated in minified builds when not referenced directly. + +(##) Conflicts + +This issue id has also been used by other, unrelated lint checks. Issue +id's must be unique, so you cannot combine these libraries. Also defined +in: +* MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep (this issue) +* [MissingKeepAnnotation from androidx.navigation:navigation-runtime:2.9.0-alpha03](MissingKeepAnnotation-2.md.html) +* [MissingKeepAnnotation from androidx.navigation:navigation-common:2.9.0-alpha03](MissingKeepAnnotation-3.md.html) + + +(##) Including + +!!! + This is not a built-in check. To include it, add the below dependency + to your project. + +``` +// build.gradle.kts +implementation("androidx.navigation:navigation-compose:2.9.0-alpha03") + +// build.gradle +implementation 'androidx.navigation:navigation-compose:2.9.0-alpha03' + +// build.gradle.kts with version catalogs: +implementation(libs.navigation.compose) + +# libs.versions.toml +[versions] +navigation-compose = "2.9.0-alpha03" +[libraries] +# For clarity and text wrapping purposes the following declaration is +# shown split up across lines, but in TOML it needs to be on a single +# line (see https://github.com/toml-lang/toml/issues/516) so adjust +# when pasting into libs.versions.toml: +navigation-compose = { + module = "androidx.navigation:navigation-compose", + version.ref = "navigation-compose" +} +``` + +2.9.0-alpha03 is the version this documentation was generated from; +there may be newer versions available. + +[Additional details about androidx.navigation:navigation-compose](androidx_navigation_navigation-compose.md.html). +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Using a suppression annotation like this on the enclosing + element: + + ```kt + // Kotlin + @Suppress("MissingKeepAnnotation") + fun method() { + composable(...) + } + ``` + + or + + ```java + // Java + @SuppressWarnings("MissingKeepAnnotation") + void method() { + composable(...); + } + ``` + +* Using a suppression comment like this on the line above: + + ```kt + //noinspection MissingKeepAnnotation + problematicStatement() + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="MissingKeepAnnotation" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'MissingKeepAnnotation' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore MissingKeepAnnotation ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/MissingResourceImportAlias.md.html b/docs/checks/MissingResourceImportAlias.md.html index 89b9d6a9..df9e34b9 100644 --- a/docs/checks/MissingResourceImportAlias.md.html +++ b/docs/checks/MissingResourceImportAlias.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -106,17 +106,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -128,7 +128,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MissingSerializableAnnotation-2.md.html b/docs/checks/MissingSerializableAnnotation-2.md.html new file mode 100644 index 00000000..98d9f332 --- /dev/null +++ b/docs/checks/MissingSerializableAnnotation-2.md.html @@ -0,0 +1,152 @@ + +(#) Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable + +!!! ERROR: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable + This is an error. + +Id +: `MissingSerializableAnnotation` +Summary +: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable +Severity +: Error +Category +: Correctness +Platform +: Any +Vendor +: Android Open Source Project +Identifier +: androidx.navigation.runtime +Feedback +: https://issuetracker.google.com/issues/new?component=409828 +Min +: Lint 8.0 and 8.1 +Compiled +: Lint 8.0 and 8.1 +Artifact +: [androidx.navigation:navigation-runtime](androidx_navigation_navigation-runtime.md.html) + +Affects +: Kotlin and Java files +Editing +: This check runs on the fly in the IDE editor +Implementation +: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/navigation/navigation-common-lint/src/main/java/androidx/navigation/common/lint/TypeSafeDestinationMissingAnnotationDetector.kt) +Copyright Year +: 2024 + +The destination needs to be annotated with @Serializable in order for +Navigation library to convert the class or object declaration into a +NavDestination. + +(##) Conflicts + +This issue id has also been used by other, unrelated lint checks. Issue +id's must be unique, so you cannot combine these libraries. Also defined +in: +* MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable (this issue) +* [MissingSerializableAnnotation from androidx.navigation:navigation-compose:2.9.0-alpha03](MissingSerializableAnnotation.md.html) +* [MissingSerializableAnnotation from androidx.navigation:navigation-common:2.9.0-alpha03](MissingSerializableAnnotation-3.md.html) + + +(##) Including + +!!! + This is not a built-in check. To include it, add the below dependency + to your project. + +``` +// build.gradle.kts +implementation("androidx.navigation:navigation-runtime:2.9.0-alpha03") + +// build.gradle +implementation 'androidx.navigation:navigation-runtime:2.9.0-alpha03' + +// build.gradle.kts with version catalogs: +implementation(libs.navigation.runtime) + +# libs.versions.toml +[versions] +navigation-runtime = "2.9.0-alpha03" +[libraries] +# For clarity and text wrapping purposes the following declaration is +# shown split up across lines, but in TOML it needs to be on a single +# line (see https://github.com/toml-lang/toml/issues/516) so adjust +# when pasting into libs.versions.toml: +navigation-runtime = { + module = "androidx.navigation:navigation-runtime", + version.ref = "navigation-runtime" +} +``` + +2.9.0-alpha03 is the version this documentation was generated from; +there may be newer versions available. + +[Additional details about androidx.navigation:navigation-runtime](androidx_navigation_navigation-runtime.md.html). +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Using a suppression annotation like this on the enclosing + element: + + ```kt + // Kotlin + @Suppress("MissingSerializableAnnotation") + fun method() { + activity(...) + } + ``` + + or + + ```java + // Java + @SuppressWarnings("MissingSerializableAnnotation") + void method() { + activity(...); + } + ``` + +* Using a suppression comment like this on the line above: + + ```kt + //noinspection MissingSerializableAnnotation + problematicStatement() + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="MissingSerializableAnnotation" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'MissingSerializableAnnotation' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore MissingSerializableAnnotation ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/MissingSerializableAnnotation-3.md.html b/docs/checks/MissingSerializableAnnotation-3.md.html new file mode 100644 index 00000000..53266a92 --- /dev/null +++ b/docs/checks/MissingSerializableAnnotation-3.md.html @@ -0,0 +1,152 @@ + +(#) Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable + +!!! ERROR: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable + This is an error. + +Id +: `MissingSerializableAnnotation` +Summary +: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable +Severity +: Error +Category +: Correctness +Platform +: Any +Vendor +: Android Open Source Project +Identifier +: androidx.navigation.common +Feedback +: https://issuetracker.google.com/issues/new?component=409828 +Min +: Lint 8.0 and 8.1 +Compiled +: Lint 8.0 and 8.1 +Artifact +: [androidx.navigation:navigation-common](androidx_navigation_navigation-common.md.html) + +Affects +: Kotlin and Java files +Editing +: This check runs on the fly in the IDE editor +Implementation +: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/navigation/navigation-common-lint/src/main/java/androidx/navigation/common/lint/TypeSafeDestinationMissingAnnotationDetector.kt) +Copyright Year +: 2024 + +The destination needs to be annotated with @Serializable in order for +Navigation library to convert the class or object declaration into a +NavDestination. + +(##) Conflicts + +This issue id has also been used by other, unrelated lint checks. Issue +id's must be unique, so you cannot combine these libraries. Also defined +in: +* MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable (this issue) +* [MissingSerializableAnnotation from androidx.navigation:navigation-compose:2.9.0-alpha03](MissingSerializableAnnotation.md.html) +* [MissingSerializableAnnotation from androidx.navigation:navigation-runtime:2.9.0-alpha03](MissingSerializableAnnotation-2.md.html) + + +(##) Including + +!!! + This is not a built-in check. To include it, add the below dependency + to your project. + +``` +// build.gradle.kts +implementation("androidx.navigation:navigation-common:2.9.0-alpha03") + +// build.gradle +implementation 'androidx.navigation:navigation-common:2.9.0-alpha03' + +// build.gradle.kts with version catalogs: +implementation(libs.navigation.common) + +# libs.versions.toml +[versions] +navigation-common = "2.9.0-alpha03" +[libraries] +# For clarity and text wrapping purposes the following declaration is +# shown split up across lines, but in TOML it needs to be on a single +# line (see https://github.com/toml-lang/toml/issues/516) so adjust +# when pasting into libs.versions.toml: +navigation-common = { + module = "androidx.navigation:navigation-common", + version.ref = "navigation-common" +} +``` + +2.9.0-alpha03 is the version this documentation was generated from; +there may be newer versions available. + +[Additional details about androidx.navigation:navigation-common](androidx_navigation_navigation-common.md.html). +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Using a suppression annotation like this on the enclosing + element: + + ```kt + // Kotlin + @Suppress("MissingSerializableAnnotation") + fun method() { + navigation(...) + } + ``` + + or + + ```java + // Java + @SuppressWarnings("MissingSerializableAnnotation") + void method() { + navigation(...); + } + ``` + +* Using a suppression comment like this on the line above: + + ```kt + //noinspection MissingSerializableAnnotation + problematicStatement() + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="MissingSerializableAnnotation" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'MissingSerializableAnnotation' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore MissingSerializableAnnotation ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/MissingSerializableAnnotation.md.html b/docs/checks/MissingSerializableAnnotation.md.html new file mode 100644 index 00000000..3c9b902e --- /dev/null +++ b/docs/checks/MissingSerializableAnnotation.md.html @@ -0,0 +1,150 @@ + +(#) Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable + +!!! ERROR: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable + This is an error. + +Id +: `MissingSerializableAnnotation` +Summary +: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable +Severity +: Error +Category +: Correctness +Platform +: Any +Vendor +: Jetpack Navigation Compose +Identifier +: androidx.navigation.compose +Min +: Lint 8.0 and 8.1 +Compiled +: Lint 8.0 and 8.1 +Artifact +: [androidx.navigation:navigation-compose](androidx_navigation_navigation-compose.md.html) + +Affects +: Kotlin and Java files +Editing +: This check runs on the fly in the IDE editor +Implementation +: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/navigation/navigation-common-lint/src/main/java/androidx/navigation/common/lint/TypeSafeDestinationMissingAnnotationDetector.kt) +Copyright Year +: 2024 + +The destination needs to be annotated with @Serializable in order for +Navigation library to convert the class or object declaration into a +NavDestination. + +(##) Conflicts + +This issue id has also been used by other, unrelated lint checks. Issue +id's must be unique, so you cannot combine these libraries. Also defined +in: +* MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable (this issue) +* [MissingSerializableAnnotation from androidx.navigation:navigation-runtime:2.9.0-alpha03](MissingSerializableAnnotation-2.md.html) +* [MissingSerializableAnnotation from androidx.navigation:navigation-common:2.9.0-alpha03](MissingSerializableAnnotation-3.md.html) + + +(##) Including + +!!! + This is not a built-in check. To include it, add the below dependency + to your project. + +``` +// build.gradle.kts +implementation("androidx.navigation:navigation-compose:2.9.0-alpha03") + +// build.gradle +implementation 'androidx.navigation:navigation-compose:2.9.0-alpha03' + +// build.gradle.kts with version catalogs: +implementation(libs.navigation.compose) + +# libs.versions.toml +[versions] +navigation-compose = "2.9.0-alpha03" +[libraries] +# For clarity and text wrapping purposes the following declaration is +# shown split up across lines, but in TOML it needs to be on a single +# line (see https://github.com/toml-lang/toml/issues/516) so adjust +# when pasting into libs.versions.toml: +navigation-compose = { + module = "androidx.navigation:navigation-compose", + version.ref = "navigation-compose" +} +``` + +2.9.0-alpha03 is the version this documentation was generated from; +there may be newer versions available. + +[Additional details about androidx.navigation:navigation-compose](androidx_navigation_navigation-compose.md.html). +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Using a suppression annotation like this on the enclosing + element: + + ```kt + // Kotlin + @Suppress("MissingSerializableAnnotation") + fun method() { + composable(...) + } + ``` + + or + + ```java + // Java + @SuppressWarnings("MissingSerializableAnnotation") + void method() { + composable(...); + } + ``` + +* Using a suppression comment like this on the line above: + + ```kt + //noinspection MissingSerializableAnnotation + problematicStatement() + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="MissingSerializableAnnotation" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'MissingSerializableAnnotation' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore MissingSerializableAnnotation ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/ModifierFactoryExtensionFunction.md.html b/docs/checks/ModifierFactoryExtensionFunction.md.html index b1a31f43..abbeae0a 100644 --- a/docs/checks/ModifierFactoryExtensionFunction.md.html +++ b/docs/checks/ModifierFactoryExtensionFunction.md.html @@ -110,17 +110,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.android) # libs.versions.toml [versions] -ui-android = "1.8.0-alpha02" +ui-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -132,9 +132,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-android](androidx_compose_ui_ui-android.md.html). (##) Suppressing diff --git a/docs/checks/ModifierFactoryReturnType.md.html b/docs/checks/ModifierFactoryReturnType.md.html index 1a98827f..99e24d79 100644 --- a/docs/checks/ModifierFactoryReturnType.md.html +++ b/docs/checks/ModifierFactoryReturnType.md.html @@ -84,17 +84,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.android) # libs.versions.toml [versions] -ui-android = "1.8.0-alpha02" +ui-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -106,9 +106,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-android](androidx_compose_ui_ui-android.md.html). (##) Suppressing diff --git a/docs/checks/ModifierFactoryUnreferencedReceiver.md.html b/docs/checks/ModifierFactoryUnreferencedReceiver.md.html index f541f67e..8cb5e2bd 100644 --- a/docs/checks/ModifierFactoryUnreferencedReceiver.md.html +++ b/docs/checks/ModifierFactoryUnreferencedReceiver.md.html @@ -91,17 +91,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.android) # libs.versions.toml [versions] -ui-android = "1.8.0-alpha02" +ui-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -113,9 +113,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-android](androidx_compose_ui_ui-android.md.html). (##) Suppressing diff --git a/docs/checks/ModifierNodeInspectableProperties.md.html b/docs/checks/ModifierNodeInspectableProperties.md.html index c192caea..443d1bca 100644 --- a/docs/checks/ModifierNodeInspectableProperties.md.html +++ b/docs/checks/ModifierNodeInspectableProperties.md.html @@ -91,17 +91,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.android) # libs.versions.toml [versions] -ui-android = "1.8.0-alpha02" +ui-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -113,9 +113,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-android](androidx_compose_ui_ui-android.md.html). (##) Suppressing diff --git a/docs/checks/ModifierParameter.md.html b/docs/checks/ModifierParameter.md.html index 6e0a6c49..d1894f8b 100644 --- a/docs/checks/ModifierParameter.md.html +++ b/docs/checks/ModifierParameter.md.html @@ -93,17 +93,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.android) # libs.versions.toml [versions] -ui-android = "1.8.0-alpha02" +ui-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -115,9 +115,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-android](androidx_compose_ui_ui-android.md.html). (##) Suppressing diff --git a/docs/checks/MonochromeLauncherIcon.md.html b/docs/checks/MonochromeLauncherIcon.md.html index 7eb56964..255fc17a 100644 --- a/docs/checks/MonochromeLauncherIcon.md.html +++ b/docs/checks/MonochromeLauncherIcon.md.html @@ -19,9 +19,9 @@ Feedback : https://issuetracker.google.com/issues/new?component=192708 Affects -: Manifest files and resource files +: Resource files Editing -: This check can *not* run live in the IDE editor +: This check runs on the fly in the IDE editor Implementation : [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/MonochromeLauncherIconDetector.kt) Tests @@ -100,11 +100,10 @@ ```xml <?xml version="1.0" encoding="UTF-8"?> - <manifest xmlns:tools="http://schemas.android.com/tools"> - ... - <application tools:ignore="MonochromeLauncherIcon" .../> + <adaptive-icon xmlns:tools="http://schemas.android.com/tools" + tools:ignore="MonochromeLauncherIcon" ...> ... - </manifest> + </adaptive-icon> ``` * Using a special `lint.xml` file in the source tree which turns off diff --git a/docs/checks/MoshiUsageAdaptedByRequiresAdapter.md.html b/docs/checks/MoshiUsageAdaptedByRequiresAdapter.md.html index 29b2a609..7ce189f2 100644 --- a/docs/checks/MoshiUsageAdaptedByRequiresAdapter.md.html +++ b/docs/checks/MoshiUsageAdaptedByRequiresAdapter.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -114,17 +114,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -136,7 +136,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageAdaptedByRequiresKeep.md.html b/docs/checks/MoshiUsageAdaptedByRequiresKeep.md.html index 58b0d45c..9aa303ac 100644 --- a/docs/checks/MoshiUsageAdaptedByRequiresKeep.md.html +++ b/docs/checks/MoshiUsageAdaptedByRequiresKeep.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -108,17 +108,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -130,7 +130,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageArray.md.html b/docs/checks/MoshiUsageArray.md.html index 5a3e7235..7516b8f3 100644 --- a/docs/checks/MoshiUsageArray.md.html +++ b/docs/checks/MoshiUsageArray.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -173,17 +173,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -195,7 +195,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageBlankGenerator.md.html b/docs/checks/MoshiUsageBlankGenerator.md.html index 00e5241a..bd582000 100644 --- a/docs/checks/MoshiUsageBlankGenerator.md.html +++ b/docs/checks/MoshiUsageBlankGenerator.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -83,17 +83,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -105,7 +105,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageBlankJsonName.md.html b/docs/checks/MoshiUsageBlankJsonName.md.html index 5aed4cbd..d88392be 100644 --- a/docs/checks/MoshiUsageBlankJsonName.md.html +++ b/docs/checks/MoshiUsageBlankJsonName.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -85,17 +85,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -107,7 +107,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageBlankTypeLabel.md.html b/docs/checks/MoshiUsageBlankTypeLabel.md.html index 15645979..aa810edb 100644 --- a/docs/checks/MoshiUsageBlankTypeLabel.md.html +++ b/docs/checks/MoshiUsageBlankTypeLabel.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -83,17 +83,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -105,7 +105,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageClassVisibility.md.html b/docs/checks/MoshiUsageClassVisibility.md.html index 577f47a1..38bffe3c 100644 --- a/docs/checks/MoshiUsageClassVisibility.md.html +++ b/docs/checks/MoshiUsageClassVisibility.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -97,17 +97,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -119,7 +119,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageDoubleClassAnnotation.md.html b/docs/checks/MoshiUsageDoubleClassAnnotation.md.html index e74a871a..64576ece 100644 --- a/docs/checks/MoshiUsageDoubleClassAnnotation.md.html +++ b/docs/checks/MoshiUsageDoubleClassAnnotation.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -97,17 +97,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -119,7 +119,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageDoubleTypeLabel.md.html b/docs/checks/MoshiUsageDoubleTypeLabel.md.html index 71e97198..9b599bd2 100644 --- a/docs/checks/MoshiUsageDoubleTypeLabel.md.html +++ b/docs/checks/MoshiUsageDoubleTypeLabel.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -96,17 +96,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -118,7 +118,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageDuplicateJsonName.md.html b/docs/checks/MoshiUsageDuplicateJsonName.md.html index 61956f64..4a76ee75 100644 --- a/docs/checks/MoshiUsageDuplicateJsonName.md.html +++ b/docs/checks/MoshiUsageDuplicateJsonName.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -101,17 +101,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -123,7 +123,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageEnumAnnotatedUnknown.md.html b/docs/checks/MoshiUsageEnumAnnotatedUnknown.md.html index e23abb2c..166e77cf 100644 --- a/docs/checks/MoshiUsageEnumAnnotatedUnknown.md.html +++ b/docs/checks/MoshiUsageEnumAnnotatedUnknown.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -53,17 +53,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -75,7 +75,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageEnumCasing.md.html b/docs/checks/MoshiUsageEnumCasing.md.html index 0af8f80a..7cd0ef6f 100644 --- a/docs/checks/MoshiUsageEnumCasing.md.html +++ b/docs/checks/MoshiUsageEnumCasing.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -53,17 +53,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -75,7 +75,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageEnumJsonClassGenerated.md.html b/docs/checks/MoshiUsageEnumJsonClassGenerated.md.html index 721440f4..2891e0a6 100644 --- a/docs/checks/MoshiUsageEnumJsonClassGenerated.md.html +++ b/docs/checks/MoshiUsageEnumJsonClassGenerated.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -52,17 +52,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -74,7 +74,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageEnumMissingJsonClass.md.html b/docs/checks/MoshiUsageEnumMissingJsonClass.md.html index 63570f2e..f836d837 100644 --- a/docs/checks/MoshiUsageEnumMissingJsonClass.md.html +++ b/docs/checks/MoshiUsageEnumMissingJsonClass.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -53,17 +53,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -75,7 +75,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageEnumMissingUnknown.md.html b/docs/checks/MoshiUsageEnumMissingUnknown.md.html index 48294e74..bf531c7e 100644 --- a/docs/checks/MoshiUsageEnumMissingUnknown.md.html +++ b/docs/checks/MoshiUsageEnumMissingUnknown.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -53,17 +53,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -75,7 +75,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageEnumPropertyCouldBeMoshi.md.html b/docs/checks/MoshiUsageEnumPropertyCouldBeMoshi.md.html index a7f27f87..611fd0c3 100644 --- a/docs/checks/MoshiUsageEnumPropertyCouldBeMoshi.md.html +++ b/docs/checks/MoshiUsageEnumPropertyCouldBeMoshi.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -89,17 +89,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -111,7 +111,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageEnumPropertyDefaultUnknown.md.html b/docs/checks/MoshiUsageEnumPropertyDefaultUnknown.md.html index d89599c2..68a48437 100644 --- a/docs/checks/MoshiUsageEnumPropertyDefaultUnknown.md.html +++ b/docs/checks/MoshiUsageEnumPropertyDefaultUnknown.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -108,17 +108,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -130,7 +130,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageGenerateAdapterShouldBeTrue.md.html b/docs/checks/MoshiUsageGenerateAdapterShouldBeTrue.md.html index 53cf3a58..18a007d3 100644 --- a/docs/checks/MoshiUsageGenerateAdapterShouldBeTrue.md.html +++ b/docs/checks/MoshiUsageGenerateAdapterShouldBeTrue.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -84,17 +84,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -106,7 +106,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageGenericSealedSubtype.md.html b/docs/checks/MoshiUsageGenericSealedSubtype.md.html index c0ece948..b523c5d8 100644 --- a/docs/checks/MoshiUsageGenericSealedSubtype.md.html +++ b/docs/checks/MoshiUsageGenericSealedSubtype.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -94,17 +94,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -116,7 +116,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageInappropriateTypeLabel.md.html b/docs/checks/MoshiUsageInappropriateTypeLabel.md.html index ea046823..3be673e7 100644 --- a/docs/checks/MoshiUsageInappropriateTypeLabel.md.html +++ b/docs/checks/MoshiUsageInappropriateTypeLabel.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -104,17 +104,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -126,7 +126,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageMissingPrimary.md.html b/docs/checks/MoshiUsageMissingPrimary.md.html index 482da0e4..0044373f 100644 --- a/docs/checks/MoshiUsageMissingPrimary.md.html +++ b/docs/checks/MoshiUsageMissingPrimary.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -85,17 +85,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -107,7 +107,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageMissingTypeLabel.md.html b/docs/checks/MoshiUsageMissingTypeLabel.md.html index 6fe405bf..0438504d 100644 --- a/docs/checks/MoshiUsageMissingTypeLabel.md.html +++ b/docs/checks/MoshiUsageMissingTypeLabel.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -94,17 +94,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -116,7 +116,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageMutableCollections.md.html b/docs/checks/MoshiUsageMutableCollections.md.html index a0f48622..1a27cc2c 100644 --- a/docs/checks/MoshiUsageMutableCollections.md.html +++ b/docs/checks/MoshiUsageMutableCollections.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -170,17 +170,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -192,7 +192,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageNonMoshiClassCollection.md.html b/docs/checks/MoshiUsageNonMoshiClassCollection.md.html index e810ce50..7caa13bc 100644 --- a/docs/checks/MoshiUsageNonMoshiClassCollection.md.html +++ b/docs/checks/MoshiUsageNonMoshiClassCollection.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -166,17 +166,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -188,7 +188,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageNonMoshiClassExternal.md.html b/docs/checks/MoshiUsageNonMoshiClassExternal.md.html index 5beb4343..fdfd0c9e 100644 --- a/docs/checks/MoshiUsageNonMoshiClassExternal.md.html +++ b/docs/checks/MoshiUsageNonMoshiClassExternal.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -174,17 +174,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -196,7 +196,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageNonMoshiClassInternal.md.html b/docs/checks/MoshiUsageNonMoshiClassInternal.md.html index 88877e0d..28c916ab 100644 --- a/docs/checks/MoshiUsageNonMoshiClassInternal.md.html +++ b/docs/checks/MoshiUsageNonMoshiClassInternal.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -160,17 +160,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -182,7 +182,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageNonMoshiClassMap.md.html b/docs/checks/MoshiUsageNonMoshiClassMap.md.html index 284800a2..5f8aba0a 100644 --- a/docs/checks/MoshiUsageNonMoshiClassMap.md.html +++ b/docs/checks/MoshiUsageNonMoshiClassMap.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -159,17 +159,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -181,7 +181,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageNonMoshiClassPlatform.md.html b/docs/checks/MoshiUsageNonMoshiClassPlatform.md.html index 941dffc3..7553f7b9 100644 --- a/docs/checks/MoshiUsageNonMoshiClassPlatform.md.html +++ b/docs/checks/MoshiUsageNonMoshiClassPlatform.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -161,17 +161,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -183,7 +183,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageObject.md.html b/docs/checks/MoshiUsageObject.md.html index 05f327b1..24105a49 100644 --- a/docs/checks/MoshiUsageObject.md.html +++ b/docs/checks/MoshiUsageObject.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -88,17 +88,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -110,7 +110,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageParamNeedsInit.md.html b/docs/checks/MoshiUsageParamNeedsInit.md.html index 30a6a637..da16348a 100644 --- a/docs/checks/MoshiUsageParamNeedsInit.md.html +++ b/docs/checks/MoshiUsageParamNeedsInit.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -85,17 +85,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -107,7 +107,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsagePrivateConstructor.md.html b/docs/checks/MoshiUsagePrivateConstructor.md.html index e5780440..2f8faed2 100644 --- a/docs/checks/MoshiUsagePrivateConstructor.md.html +++ b/docs/checks/MoshiUsagePrivateConstructor.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -93,17 +93,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -115,7 +115,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsagePrivateConstructorProperty.md.html b/docs/checks/MoshiUsagePrivateConstructorProperty.md.html index 122be129..e2288dd2 100644 --- a/docs/checks/MoshiUsagePrivateConstructorProperty.md.html +++ b/docs/checks/MoshiUsagePrivateConstructorProperty.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -86,17 +86,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -108,7 +108,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageQualifierRetention.md.html b/docs/checks/MoshiUsageQualifierRetention.md.html index c0c1804e..4509c715 100644 --- a/docs/checks/MoshiUsageQualifierRetention.md.html +++ b/docs/checks/MoshiUsageQualifierRetention.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -118,17 +118,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -140,7 +140,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageQualifierTarget.md.html b/docs/checks/MoshiUsageQualifierTarget.md.html index 726f35d2..340677f7 100644 --- a/docs/checks/MoshiUsageQualifierTarget.md.html +++ b/docs/checks/MoshiUsageQualifierTarget.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -117,17 +117,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -139,7 +139,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageRedundantJsonName.md.html b/docs/checks/MoshiUsageRedundantJsonName.md.html index b421a8ec..7d73e7e7 100644 --- a/docs/checks/MoshiUsageRedundantJsonName.md.html +++ b/docs/checks/MoshiUsageRedundantJsonName.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -89,17 +89,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -111,7 +111,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageRedundantSiteTarget.md.html b/docs/checks/MoshiUsageRedundantSiteTarget.md.html index 975e6779..f237473b 100644 --- a/docs/checks/MoshiUsageRedundantSiteTarget.md.html +++ b/docs/checks/MoshiUsageRedundantSiteTarget.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -89,17 +89,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -111,7 +111,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageSealedMustBeSealed.md.html b/docs/checks/MoshiUsageSealedMustBeSealed.md.html index 3431e99c..5623df80 100644 --- a/docs/checks/MoshiUsageSealedMustBeSealed.md.html +++ b/docs/checks/MoshiUsageSealedMustBeSealed.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -82,17 +82,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -104,7 +104,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageSerializedName.md.html b/docs/checks/MoshiUsageSerializedName.md.html index 24f8677e..68cbabb4 100644 --- a/docs/checks/MoshiUsageSerializedName.md.html +++ b/docs/checks/MoshiUsageSerializedName.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -113,17 +113,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -135,7 +135,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageSnakeCase.md.html b/docs/checks/MoshiUsageSnakeCase.md.html index 5c0666e8..ec1b4203 100644 --- a/docs/checks/MoshiUsageSnakeCase.md.html +++ b/docs/checks/MoshiUsageSnakeCase.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -91,17 +91,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -113,7 +113,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageTransientNeedsInit.md.html b/docs/checks/MoshiUsageTransientNeedsInit.md.html index e830428a..2dd4befb 100644 --- a/docs/checks/MoshiUsageTransientNeedsInit.md.html +++ b/docs/checks/MoshiUsageTransientNeedsInit.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -85,17 +85,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -107,7 +107,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageUnsupportedType.md.html b/docs/checks/MoshiUsageUnsupportedType.md.html index 1a19e6a1..36458a02 100644 --- a/docs/checks/MoshiUsageUnsupportedType.md.html +++ b/docs/checks/MoshiUsageUnsupportedType.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -110,17 +110,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -132,7 +132,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageUseData.md.html b/docs/checks/MoshiUsageUseData.md.html index 7593a127..e48cf9f3 100644 --- a/docs/checks/MoshiUsageUseData.md.html +++ b/docs/checks/MoshiUsageUseData.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -87,17 +87,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -109,7 +109,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MoshiUsageVarProperty.md.html b/docs/checks/MoshiUsageVarProperty.md.html index 13ed9f14..f8c286f3 100644 --- a/docs/checks/MoshiUsageVarProperty.md.html +++ b/docs/checks/MoshiUsageVarProperty.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -87,17 +87,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -109,7 +109,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MultipleAwaitPointerEventScopes.md.html b/docs/checks/MultipleAwaitPointerEventScopes.md.html index c01df099..d1b8f86f 100644 --- a/docs/checks/MultipleAwaitPointerEventScopes.md.html +++ b/docs/checks/MultipleAwaitPointerEventScopes.md.html @@ -52,17 +52,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.android) # libs.versions.toml [versions] -ui-android = "1.8.0-alpha02" +ui-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -74,9 +74,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-android](androidx_compose_ui_ui-android.md.html). (##) Suppressing diff --git a/docs/checks/MustBeInModule.md.html b/docs/checks/MustBeInModule.md.html index 8ccf457b..81b1bbc8 100644 --- a/docs/checks/MustBeInModule.md.html +++ b/docs/checks/MustBeInModule.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -126,17 +126,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -148,7 +148,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MustUseNamedParams.md.html b/docs/checks/MustUseNamedParams.md.html index 649a75a4..7f0abecc 100644 --- a/docs/checks/MustUseNamedParams.md.html +++ b/docs/checks/MustUseNamedParams.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -99,17 +99,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -121,7 +121,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/MutableCollectionMutableState.md.html b/docs/checks/MutableCollectionMutableState.md.html index c4c490a9..c35e6894 100644 --- a/docs/checks/MutableCollectionMutableState.md.html +++ b/docs/checks/MutableCollectionMutableState.md.html @@ -146,17 +146,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -168,9 +168,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/MutatingSharedPrefs.md.html b/docs/checks/MutatingSharedPrefs.md.html index d225b4a0..baef8974 100644 --- a/docs/checks/MutatingSharedPrefs.md.html +++ b/docs/checks/MutatingSharedPrefs.md.html @@ -32,8 +32,8 @@ As stated in the docs for `SharedPreferences.getStringSet`, you must not modify the set returned by `getStringSet`: - "Note that you must not modify the set instance returned -by this call. The consistency of the stored data is not guaranteed + "Note that you must not modify the set instance returned +by this call. The consistency of the stored data is not guaranteed if you do, nor is your ability to modify the instance at all." (##) Example diff --git a/docs/checks/NoCollectCallFound.md.html b/docs/checks/NoCollectCallFound.md.html index 89aa9ff0..3c5faaa8 100644 --- a/docs/checks/NoCollectCallFound.md.html +++ b/docs/checks/NoCollectCallFound.md.html @@ -141,17 +141,17 @@ ``` // build.gradle.kts -implementation("androidx.activity:activity-compose:1.10.0-alpha02") +implementation("androidx.activity:activity-compose:1.10.0-beta01") // build.gradle -implementation 'androidx.activity:activity-compose:1.10.0-alpha02' +implementation 'androidx.activity:activity-compose:1.10.0-beta01' // build.gradle.kts with version catalogs: implementation(libs.activity.compose) # libs.versions.toml [versions] -activity-compose = "1.10.0-alpha02" +activity-compose = "1.10.0-beta01" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -163,7 +163,7 @@ } ``` -1.10.0-alpha02 is the version this documentation was generated from; +1.10.0-beta01 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.activity:activity-compose](androidx_activity_activity-compose.md.html). diff --git a/docs/checks/NullSafeMutableLiveData-2.md.html b/docs/checks/NullSafeMutableLiveData-2.md.html index abef04ea..a16dd824 100644 --- a/docs/checks/NullSafeMutableLiveData-2.md.html +++ b/docs/checks/NullSafeMutableLiveData-2.md.html @@ -40,15 +40,15 @@ Copyright Year : 2019 -This check ensures that LiveData values are not null when explicitly +This check ensures that LiveData values are not null when explicitly declared as non-nullable. Kotlin interoperability does not support enforcing explicit null-safety when using generic Java type -parameters. Since LiveData is a Java class its value can always +parameters. Since LiveData is a Java class its value can always be null even when its type is explicitly declared as non-nullable. This can lead to runtime exceptions from -reading a null LiveData value that is assumed to be +reading a null LiveData value that is assumed to be non-nullable. !!! Tip @@ -60,7 +60,7 @@ well. Issue id's must be unique, so you cannot combine these libraries. Also defined in: * NullSafeMutableLiveData: LiveData value assignment nullability mismatch (this issue) -* [NullSafeMutableLiveData from androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha03](NullSafeMutableLiveData.md.html) +* [NullSafeMutableLiveData from androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha07](NullSafeMutableLiveData.md.html) * [NullSafeMutableLiveData from androidx.lifecycle:lifecycle-livedata-core-ktx:2.8.0-alpha01](NullSafeMutableLiveData-2.md.html) diff --git a/docs/checks/NullSafeMutableLiveData.md.html b/docs/checks/NullSafeMutableLiveData.md.html index f73d6ad3..f68c923c 100644 --- a/docs/checks/NullSafeMutableLiveData.md.html +++ b/docs/checks/NullSafeMutableLiveData.md.html @@ -40,15 +40,15 @@ Copyright Year : 2019 -This check ensures that LiveData values are not null when explicitly +This check ensures that LiveData values are not null when explicitly declared as non-nullable. Kotlin interoperability does not support enforcing explicit null-safety when using generic Java type -parameters. Since LiveData is a Java class its value can always +parameters. Since LiveData is a Java class its value can always be null even when its type is explicitly declared as non-nullable. This can lead to runtime exceptions from -reading a null LiveData value that is assumed to be +reading a null LiveData value that is assumed to be non-nullable. !!! Tip @@ -60,7 +60,7 @@ well. Issue id's must be unique, so you cannot combine these libraries. Also defined in: * NullSafeMutableLiveData: LiveData value assignment nullability mismatch (this issue) -* [NullSafeMutableLiveData from androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha03](NullSafeMutableLiveData.md.html) +* [NullSafeMutableLiveData from androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha07](NullSafeMutableLiveData.md.html) * [NullSafeMutableLiveData from androidx.lifecycle:lifecycle-livedata-core-ktx:2.8.0-alpha01](NullSafeMutableLiveData-2.md.html) @@ -72,17 +72,17 @@ ``` // build.gradle.kts -implementation("androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha03") +implementation("androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha07") // build.gradle -implementation 'androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha03' +implementation 'androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha07' // build.gradle.kts with version catalogs: implementation(libs.lifecycle.livedata.core) # libs.versions.toml [versions] -lifecycle-livedata-core = "2.9.0-alpha03" +lifecycle-livedata-core = "2.9.0-alpha07" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -94,7 +94,7 @@ } ``` -2.9.0-alpha03 is the version this documentation was generated from; +2.9.0-alpha07 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.lifecycle:lifecycle-livedata-core](androidx_lifecycle_lifecycle-livedata-core.md.html). diff --git a/docs/checks/OldTargetApi.md.html b/docs/checks/OldTargetApi.md.html index 9a61f671..ac2f4056 100644 --- a/docs/checks/OldTargetApi.md.html +++ b/docs/checks/OldTargetApi.md.html @@ -33,12 +33,12 @@ Copyright Year : 2014 -When your application runs on a version of Android that is more recent -than your `targetSdkVersion` specifies that it has been tested with, -various compatibility modes kick in. This ensures that your application -continues to work, but it may look out of place. For example, if the -`targetSdkVersion` is less than 14, your app may get an option button in -the UI. +When your application or sdk runs on a version of Android that is more +recent than your `targetSdkVersion` specifies that it has been tested +with, various compatibility modes kick in. This ensures that your +application continues to work, but it may look out of place. For +example, if the `targetSdkVersion` is less than 14, your app may get an +option button in the UI. To fix this issue, set the `targetSdkVersion` to the highest available value. Then test your app to make sure everything works correctly. You diff --git a/docs/checks/OpaqueUnitKey.md.html b/docs/checks/OpaqueUnitKey.md.html index 184b46c5..4ea3928c 100644 --- a/docs/checks/OpaqueUnitKey.md.html +++ b/docs/checks/OpaqueUnitKey.md.html @@ -98,17 +98,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -120,9 +120,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/Orientation.md.html b/docs/checks/Orientation.md.html index a77858e9..2147a6a2 100644 --- a/docs/checks/Orientation.md.html +++ b/docs/checks/Orientation.md.html @@ -39,7 +39,7 @@ It also checks for empty LinearLayouts without an `orientation` attribute that also defines an `id` attribute. This catches the scenarios where children will be added to the `LinearLayout` -dynamically. +dynamically. !!! Tip This lint check has an associated quickfix available in the IDE. diff --git a/docs/checks/ParcelizeFunctionProperty.md.html b/docs/checks/ParcelizeFunctionProperty.md.html index 5da33732..06d89742 100644 --- a/docs/checks/ParcelizeFunctionProperty.md.html +++ b/docs/checks/ParcelizeFunctionProperty.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -138,17 +138,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -160,7 +160,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/ProduceStateDoesNotAssignValue.md.html b/docs/checks/ProduceStateDoesNotAssignValue.md.html index 84016fd6..3601ecd0 100644 --- a/docs/checks/ProduceStateDoesNotAssignValue.md.html +++ b/docs/checks/ProduceStateDoesNotAssignValue.md.html @@ -121,17 +121,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -143,9 +143,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/ProtectedPermissions.md.html b/docs/checks/ProtectedPermissions.md.html index e8bf8052..e071e9e8 100644 --- a/docs/checks/ProtectedPermissions.md.html +++ b/docs/checks/ProtectedPermissions.md.html @@ -30,8 +30,9 @@ : 2012 Permissions with the protection level `signature`, `privileged` or -`signatureOrSystem` are only granted to system apps. If an app is a -regular non-system app, it will never be able to use these permissions. +`signatureOrSystem` are only granted to system apps (unless they also +include `appop`). If an app is a regular non-system app, it will never +be able to use these permissions. (##) Example diff --git a/docs/checks/ProtoLayoutEdgeContentLayoutResponsive-2.md.html b/docs/checks/ProtoLayoutEdgeContentLayoutResponsive-2.md.html deleted file mode 100644 index 352b3fca..00000000 --- a/docs/checks/ProtoLayoutEdgeContentLayoutResponsive-2.md.html +++ /dev/null @@ -1,161 +0,0 @@ - -(#) ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales - -!!! WARNING: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales - This is a warning. - -Id -: `ProtoLayoutEdgeContentLayoutResponsive` -Summary -: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales -Severity -: Warning -Category -: Correctness -Platform -: Android -Vendor -: Android Open Source Project -Identifier -: androidx.wear.protolayout -Feedback -: https://issuetracker.google.com/issues/new?component=1112273 -Min -: Lint 8.0 and 8.1 -Compiled -: Lint 8.0 and 8.1 -Artifact -: [androidx.wear.protolayout:protolayout-material](androidx_wear_protolayout_protolayout-material.md.html) - -Affects -: Kotlin and Java files -Editing -: This check runs on the fly in the IDE editor -Implementation -: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/main/java/androidx/wear/protolayout/lint/ResponsiveLayoutDetector.kt) -Tests -: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/test/java/PrimaryLayoutResponsiveDetectorTest.kt) -Copyright Year -: 2024 - -It is highly recommended to use the latest -setResponsiveInsetEnabled(true) when you're -using the ProtoLayout's EdgeContentLayout. - -This is will take care of all outer margins and inner padding to ensure -that content of -labels doesn't go off the screen (especially with different locales) and -that primary -label is placed in the consistent place. - -(##) Repackaged - -This lint check appears to have been packaged in other artifacts as -well. Issue id's must be unique, so you cannot combine these libraries. -Also defined in: -* ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales (this issue) -* [ProtoLayoutEdgeContentLayoutResponsive from androidx.wear.protolayout:protolayout-expression:1.2.0](ProtoLayoutEdgeContentLayoutResponsive.md.html) -* [ProtoLayoutEdgeContentLayoutResponsive from androidx.wear.protolayout:protolayout-material:1.2.0](ProtoLayoutEdgeContentLayoutResponsive-2.md.html) -* [ProtoLayoutEdgeContentLayoutResponsive from androidx.wear.protolayout:protolayout:1.2.0](ProtoLayoutEdgeContentLayoutResponsive-3.md.html) - - -(##) Including - -!!! - This is not a built-in check. To include it, add the below dependency - to your project. - -``` -// build.gradle.kts -implementation("androidx.wear.protolayout:protolayout-material:1.2.0") - -// build.gradle -implementation 'androidx.wear.protolayout:protolayout-material:1.2.0' - -// build.gradle.kts with version catalogs: -implementation(libs.protolayout.material) - -# libs.versions.toml -[versions] -protolayout-material = "1.2.0" -[libraries] -# For clarity and text wrapping purposes the following declaration is -# shown split up across lines, but in TOML it needs to be on a single -# line (see https://github.com/toml-lang/toml/issues/516) so adjust -# when pasting into libs.versions.toml: -protolayout-material = { - module = "androidx.wear.protolayout:protolayout-material", - version.ref = "protolayout-material" -} -``` - -1.2.0 is the version this documentation was generated from; -there may be newer versions available. - -[Additional details about androidx.wear.protolayout:protolayout-material](androidx_wear_protolayout_protolayout-material.md.html). -(##) Suppressing - -You can suppress false positives using one of the following mechanisms: - -* Using a suppression annotation like this on the enclosing - element: - - ```kt - // Kotlin - @Suppress("ProtoLayoutEdgeContentLayoutResponsive") - fun method() { - Builder(...) - } - ``` - - or - - ```java - // Java - @SuppressWarnings("ProtoLayoutEdgeContentLayoutResponsive") - void method() { - new Builder(...); - } - ``` - -* Using a suppression comment like this on the line above: - - ```kt - //noinspection ProtoLayoutEdgeContentLayoutResponsive - problematicStatement() - ``` - -* Using a special `lint.xml` file in the source tree which turns off - the check in that folder and any sub folder. A simple file might look - like this: - ```xml - <?xml version="1.0" encoding="UTF-8"?> - <lint> - <issue id="ProtoLayoutEdgeContentLayoutResponsive" severity="ignore" /> - </lint> - ``` - Instead of `ignore` you can also change the severity here, for - example from `error` to `warning`. You can find additional - documentation on how to filter issues by path, regular expression and - so on - [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). - -* In Gradle projects, using the DSL syntax to configure lint. For - example, you can use something like - ```gradle - lintOptions { - disable 'ProtoLayoutEdgeContentLayoutResponsive' - } - ``` - In Android projects this should be nested inside an `android { }` - block. - -* For manual invocations of `lint`, using the `--ignore` flag: - ``` - $ lint --ignore ProtoLayoutEdgeContentLayoutResponsive ...` - ``` - -* Last, but not least, using baselines, as discussed - [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). - - \ No newline at end of file diff --git a/docs/checks/ProtoLayoutEdgeContentLayoutResponsive-3.md.html b/docs/checks/ProtoLayoutEdgeContentLayoutResponsive-3.md.html deleted file mode 100644 index a6ae2a81..00000000 --- a/docs/checks/ProtoLayoutEdgeContentLayoutResponsive-3.md.html +++ /dev/null @@ -1,161 +0,0 @@ - -(#) ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales - -!!! WARNING: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales - This is a warning. - -Id -: `ProtoLayoutEdgeContentLayoutResponsive` -Summary -: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales -Severity -: Warning -Category -: Correctness -Platform -: Android -Vendor -: Android Open Source Project -Identifier -: androidx.wear.protolayout -Feedback -: https://issuetracker.google.com/issues/new?component=1112273 -Min -: Lint 8.0 and 8.1 -Compiled -: Lint 8.0 and 8.1 -Artifact -: [androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html) - -Affects -: Kotlin and Java files -Editing -: This check runs on the fly in the IDE editor -Implementation -: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/main/java/androidx/wear/protolayout/lint/ResponsiveLayoutDetector.kt) -Tests -: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/test/java/PrimaryLayoutResponsiveDetectorTest.kt) -Copyright Year -: 2024 - -It is highly recommended to use the latest -setResponsiveInsetEnabled(true) when you're -using the ProtoLayout's EdgeContentLayout. - -This is will take care of all outer margins and inner padding to ensure -that content of -labels doesn't go off the screen (especially with different locales) and -that primary -label is placed in the consistent place. - -(##) Repackaged - -This lint check appears to have been packaged in other artifacts as -well. Issue id's must be unique, so you cannot combine these libraries. -Also defined in: -* ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales (this issue) -* [ProtoLayoutEdgeContentLayoutResponsive from androidx.wear.protolayout:protolayout-expression:1.2.0](ProtoLayoutEdgeContentLayoutResponsive.md.html) -* [ProtoLayoutEdgeContentLayoutResponsive from androidx.wear.protolayout:protolayout-material:1.2.0](ProtoLayoutEdgeContentLayoutResponsive-2.md.html) -* [ProtoLayoutEdgeContentLayoutResponsive from androidx.wear.protolayout:protolayout:1.2.0](ProtoLayoutEdgeContentLayoutResponsive-3.md.html) - - -(##) Including - -!!! - This is not a built-in check. To include it, add the below dependency - to your project. - -``` -// build.gradle.kts -implementation("androidx.wear.protolayout:protolayout:1.2.0") - -// build.gradle -implementation 'androidx.wear.protolayout:protolayout:1.2.0' - -// build.gradle.kts with version catalogs: -implementation(libs.protolayout) - -# libs.versions.toml -[versions] -protolayout = "1.2.0" -[libraries] -# For clarity and text wrapping purposes the following declaration is -# shown split up across lines, but in TOML it needs to be on a single -# line (see https://github.com/toml-lang/toml/issues/516) so adjust -# when pasting into libs.versions.toml: -protolayout = { - module = "androidx.wear.protolayout:protolayout", - version.ref = "protolayout" -} -``` - -1.2.0 is the version this documentation was generated from; -there may be newer versions available. - -[Additional details about androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html). -(##) Suppressing - -You can suppress false positives using one of the following mechanisms: - -* Using a suppression annotation like this on the enclosing - element: - - ```kt - // Kotlin - @Suppress("ProtoLayoutEdgeContentLayoutResponsive") - fun method() { - Builder(...) - } - ``` - - or - - ```java - // Java - @SuppressWarnings("ProtoLayoutEdgeContentLayoutResponsive") - void method() { - new Builder(...); - } - ``` - -* Using a suppression comment like this on the line above: - - ```kt - //noinspection ProtoLayoutEdgeContentLayoutResponsive - problematicStatement() - ``` - -* Using a special `lint.xml` file in the source tree which turns off - the check in that folder and any sub folder. A simple file might look - like this: - ```xml - <?xml version="1.0" encoding="UTF-8"?> - <lint> - <issue id="ProtoLayoutEdgeContentLayoutResponsive" severity="ignore" /> - </lint> - ``` - Instead of `ignore` you can also change the severity here, for - example from `error` to `warning`. You can find additional - documentation on how to filter issues by path, regular expression and - so on - [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). - -* In Gradle projects, using the DSL syntax to configure lint. For - example, you can use something like - ```gradle - lintOptions { - disable 'ProtoLayoutEdgeContentLayoutResponsive' - } - ``` - In Android projects this should be nested inside an `android { }` - block. - -* For manual invocations of `lint`, using the `--ignore` flag: - ``` - $ lint --ignore ProtoLayoutEdgeContentLayoutResponsive ...` - ``` - -* Last, but not least, using baselines, as discussed - [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). - - \ No newline at end of file diff --git a/docs/checks/ProtoLayoutEdgeContentLayoutResponsive.md.html b/docs/checks/ProtoLayoutEdgeContentLayoutResponsive.md.html index 8e310ade..51dbd7dc 100644 --- a/docs/checks/ProtoLayoutEdgeContentLayoutResponsive.md.html +++ b/docs/checks/ProtoLayoutEdgeContentLayoutResponsive.md.html @@ -21,11 +21,11 @@ Feedback : https://issuetracker.google.com/issues/new?component=1112273 Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: [androidx.wear.protolayout:protolayout-expression](androidx_wear_protolayout_protolayout-expression.md.html) +: [androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html) Affects : Kotlin and Java files @@ -48,17 +48,6 @@ that primary label is placed in the consistent place. -(##) Repackaged - -This lint check appears to have been packaged in other artifacts as -well. Issue id's must be unique, so you cannot combine these libraries. -Also defined in: -* ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales (this issue) -* [ProtoLayoutEdgeContentLayoutResponsive from androidx.wear.protolayout:protolayout-expression:1.2.0](ProtoLayoutEdgeContentLayoutResponsive.md.html) -* [ProtoLayoutEdgeContentLayoutResponsive from androidx.wear.protolayout:protolayout-material:1.2.0](ProtoLayoutEdgeContentLayoutResponsive-2.md.html) -* [ProtoLayoutEdgeContentLayoutResponsive from androidx.wear.protolayout:protolayout:1.2.0](ProtoLayoutEdgeContentLayoutResponsive-3.md.html) - - (##) Including !!! @@ -67,32 +56,39 @@ ``` // build.gradle.kts -implementation("androidx.wear.protolayout:protolayout-expression:1.2.0") +implementation("androidx.wear.protolayout:protolayout:1.3.0-alpha04") // build.gradle -implementation 'androidx.wear.protolayout:protolayout-expression:1.2.0' +implementation 'androidx.wear.protolayout:protolayout:1.3.0-alpha04' // build.gradle.kts with version catalogs: -implementation(libs.protolayout.expression) +implementation(libs.protolayout) # libs.versions.toml [versions] -protolayout-expression = "1.2.0" +protolayout = "1.3.0-alpha04" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single # line (see https://github.com/toml-lang/toml/issues/516) so adjust # when pasting into libs.versions.toml: -protolayout-expression = { - module = "androidx.wear.protolayout:protolayout-expression", - version.ref = "protolayout-expression" +protolayout = { + module = "androidx.wear.protolayout:protolayout", + version.ref = "protolayout" } ``` -1.2.0 is the version this documentation was generated from; +1.3.0-alpha04 is the version this documentation was generated from; there may be newer versions available. -[Additional details about androidx.wear.protolayout:protolayout-expression](androidx_wear_protolayout_protolayout-expression.md.html). +NOTE: These lint checks are **also** made available separate from the main library. +Use one of the following artifacts: +* `androidx.wear.protolayout:protolayout-expression:1.3.0-alpha04` +* `androidx.wear.protolayout:protolayout-material3:1.3.0-alpha04` +* `androidx.wear.protolayout:protolayout-material:1.3.0-alpha04` + + +[Additional details about androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html). (##) Suppressing You can suppress false positives using one of the following mechanisms: diff --git a/docs/checks/ProtoLayoutMinSchema-2.md.html b/docs/checks/ProtoLayoutMinSchema-2.md.html deleted file mode 100644 index 4ba8ec96..00000000 --- a/docs/checks/ProtoLayoutMinSchema-2.md.html +++ /dev/null @@ -1,243 +0,0 @@ - -(#) ProtoLayout feature is not guaranteed to be available on the target device API - -!!! ERROR: ProtoLayout feature is not guaranteed to be available on the target device API - This is an error. - -Id -: `ProtoLayoutMinSchema` -Summary -: ProtoLayout feature is not guaranteed to be available on the target device API -Severity -: Error -Category -: Correctness -Platform -: Android -Vendor -: Android Open Source Project -Identifier -: androidx.wear.protolayout -Feedback -: https://issuetracker.google.com/issues/new?component=1112273 -Min -: Lint 8.0 and 8.1 -Compiled -: Lint 8.0 and 8.1 -Artifact -: [androidx.wear.protolayout:protolayout-material](androidx_wear_protolayout_protolayout-material.md.html) - -Affects -: Kotlin and Java files -Editing -: This check runs on the fly in the IDE editor -Implementation -: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/main/java/androidx/wear/protolayout/lint/ProtoLayoutMinSchemaDetector.kt) -Tests -: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/test/java/ProtoLayoutMinSchemaDetectorTest.kt) -Copyright Year -: 2023 - -Using features that are not supported by an older ProtoLayout -renderer/evaluator, can lead to unexpected rendering or invalid results -(for expressions). - -Each Wear OS platform version has a guaranteed minimum ProtoLayout -schema version. -On API 33, all consumers for ProtoLayout support at least Schema version -1.2 (major=1, minor=200). -On API 34, all consumers for ProtoLayout support at least Schema version -1.3 (major=1, minor=300). - -You can use those newer features through conditional Android API checks, -or by increasing the minSdk for your project. -You can also annotate your methods with @RequiresApi or -@RequiresSchemaAnnotation if you know they require the -corresponding version. -Note that @RequiresSchemaVersion annotation on classes are mostly -ignored (except for Builder classes). - -(##) Example - -Here is an example of lint warnings produced by this check: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text -src/foo/Bar.kt:6:Error: This API is not guaranteed to be available on -the device (requires schema 1.200). [ProtoLayoutMinSchema] - private val fieldAssignment = withAnnotation.annotatedMethod() - -------------------------------- -src/foo/Bar.kt:12:Error: This API is not guaranteed to be available on -the device (requires schema 1.200). [ProtoLayoutMinSchema] - bar() - ----- -src/foo/Bar.kt:14:Error: This API is not guaranteed to be available on -the device (requires schema 1.200). [ProtoLayoutMinSchema] - withAnnotation.annotatedMethod() - -------------------------------- -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Here are the relevant source files: - -`src/foo/WithAnnotation.kt`: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~kotlin linenumbers -package foo -import androidx.wear.protolayout.expression.RequiresSchemaVersion - -@RequiresSchemaVersion(major=1, minor=200) -class WithAnnotation { - fun unAnnotatedMethod(){} - - @RequiresSchemaVersion(major=1, minor=200) - fun annotatedMethod(){} - - @RequiresSchemaVersion(major=1, minor=200) - fun unreferencedMethod(){} - - companion object { - @RequiresSchemaVersion(major=1, minor=200) - const val ANNOTATED_CONST = 10 - } -} -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -`src/foo/Bar.kt`: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~kotlin linenumbers -package foo -import androidx.wear.protolayout.expression.RequiresSchemaVersion - -class Bar { - private val withAnnotation = WithAnnotation() - private val fieldAssignment = withAnnotation.annotatedMethod() - - @RequiresSchemaVersion(major=1, minor=200) - fun bar() {} - - fun baz() { - bar() - withAnnotation.unAnnotatedMethod() - withAnnotation.annotatedMethod() - //TODO: b/308552481 - This should fail - val b = withAnnotation.ANNOTATED_CONST - } -} -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -You can also visit the -[source code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/test/java/ProtoLayoutMinSchemaDetectorTest.kt) -for the unit tests for this check to see additional scenarios. - -The above example was automatically extracted from the first unit test -found for this lint check, `ProtoLayoutMinSchemaDetector.calling V1_2 API requires SDK version check`. -To report a problem with this extracted sample, visit -https://issuetracker.google.com/issues/new?component=1112273. - -(##) Repackaged - -This lint check appears to have been packaged in other artifacts as -well. Issue id's must be unique, so you cannot combine these libraries. -Also defined in: -* ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API (this issue) -* [ProtoLayoutMinSchema from androidx.wear.protolayout:protolayout-expression:1.2.0](ProtoLayoutMinSchema.md.html) -* [ProtoLayoutMinSchema from androidx.wear.protolayout:protolayout-material:1.2.0](ProtoLayoutMinSchema-2.md.html) -* [ProtoLayoutMinSchema from androidx.wear.protolayout:protolayout:1.2.0](ProtoLayoutMinSchema-3.md.html) - - -(##) Including - -!!! - This is not a built-in check. To include it, add the below dependency - to your project. - -``` -// build.gradle.kts -implementation("androidx.wear.protolayout:protolayout-material:1.2.0") - -// build.gradle -implementation 'androidx.wear.protolayout:protolayout-material:1.2.0' - -// build.gradle.kts with version catalogs: -implementation(libs.protolayout.material) - -# libs.versions.toml -[versions] -protolayout-material = "1.2.0" -[libraries] -# For clarity and text wrapping purposes the following declaration is -# shown split up across lines, but in TOML it needs to be on a single -# line (see https://github.com/toml-lang/toml/issues/516) so adjust -# when pasting into libs.versions.toml: -protolayout-material = { - module = "androidx.wear.protolayout:protolayout-material", - version.ref = "protolayout-material" -} -``` - -1.2.0 is the version this documentation was generated from; -there may be newer versions available. - -[Additional details about androidx.wear.protolayout:protolayout-material](androidx_wear_protolayout_protolayout-material.md.html). -(##) Suppressing - -You can suppress false positives using one of the following mechanisms: - -* Using a suppression annotation like this on the enclosing - element: - - ```kt - // Kotlin - @Suppress("ProtoLayoutMinSchema") - fun method() { - problematicStatement() - } - ``` - - or - - ```java - // Java - @SuppressWarnings("ProtoLayoutMinSchema") - void method() { - problematicStatement(); - } - ``` - -* Using a suppression comment like this on the line above: - - ```kt - //noinspection ProtoLayoutMinSchema - problematicStatement() - ``` - -* Using a special `lint.xml` file in the source tree which turns off - the check in that folder and any sub folder. A simple file might look - like this: - ```xml - <?xml version="1.0" encoding="UTF-8"?> - <lint> - <issue id="ProtoLayoutMinSchema" severity="ignore" /> - </lint> - ``` - Instead of `ignore` you can also change the severity here, for - example from `error` to `warning`. You can find additional - documentation on how to filter issues by path, regular expression and - so on - [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). - -* In Gradle projects, using the DSL syntax to configure lint. For - example, you can use something like - ```gradle - lintOptions { - disable 'ProtoLayoutMinSchema' - } - ``` - In Android projects this should be nested inside an `android { }` - block. - -* For manual invocations of `lint`, using the `--ignore` flag: - ``` - $ lint --ignore ProtoLayoutMinSchema ...` - ``` - -* Last, but not least, using baselines, as discussed - [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). - - \ No newline at end of file diff --git a/docs/checks/ProtoLayoutMinSchema-3.md.html b/docs/checks/ProtoLayoutMinSchema-3.md.html deleted file mode 100644 index 9256ff29..00000000 --- a/docs/checks/ProtoLayoutMinSchema-3.md.html +++ /dev/null @@ -1,243 +0,0 @@ - -(#) ProtoLayout feature is not guaranteed to be available on the target device API - -!!! ERROR: ProtoLayout feature is not guaranteed to be available on the target device API - This is an error. - -Id -: `ProtoLayoutMinSchema` -Summary -: ProtoLayout feature is not guaranteed to be available on the target device API -Severity -: Error -Category -: Correctness -Platform -: Android -Vendor -: Android Open Source Project -Identifier -: androidx.wear.protolayout -Feedback -: https://issuetracker.google.com/issues/new?component=1112273 -Min -: Lint 8.0 and 8.1 -Compiled -: Lint 8.0 and 8.1 -Artifact -: [androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html) - -Affects -: Kotlin and Java files -Editing -: This check runs on the fly in the IDE editor -Implementation -: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/main/java/androidx/wear/protolayout/lint/ProtoLayoutMinSchemaDetector.kt) -Tests -: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/test/java/ProtoLayoutMinSchemaDetectorTest.kt) -Copyright Year -: 2023 - -Using features that are not supported by an older ProtoLayout -renderer/evaluator, can lead to unexpected rendering or invalid results -(for expressions). - -Each Wear OS platform version has a guaranteed minimum ProtoLayout -schema version. -On API 33, all consumers for ProtoLayout support at least Schema version -1.2 (major=1, minor=200). -On API 34, all consumers for ProtoLayout support at least Schema version -1.3 (major=1, minor=300). - -You can use those newer features through conditional Android API checks, -or by increasing the minSdk for your project. -You can also annotate your methods with @RequiresApi or -@RequiresSchemaAnnotation if you know they require the -corresponding version. -Note that @RequiresSchemaVersion annotation on classes are mostly -ignored (except for Builder classes). - -(##) Example - -Here is an example of lint warnings produced by this check: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text -src/foo/Bar.kt:6:Error: This API is not guaranteed to be available on -the device (requires schema 1.200). [ProtoLayoutMinSchema] - private val fieldAssignment = withAnnotation.annotatedMethod() - -------------------------------- -src/foo/Bar.kt:12:Error: This API is not guaranteed to be available on -the device (requires schema 1.200). [ProtoLayoutMinSchema] - bar() - ----- -src/foo/Bar.kt:14:Error: This API is not guaranteed to be available on -the device (requires schema 1.200). [ProtoLayoutMinSchema] - withAnnotation.annotatedMethod() - -------------------------------- -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Here are the relevant source files: - -`src/foo/WithAnnotation.kt`: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~kotlin linenumbers -package foo -import androidx.wear.protolayout.expression.RequiresSchemaVersion - -@RequiresSchemaVersion(major=1, minor=200) -class WithAnnotation { - fun unAnnotatedMethod(){} - - @RequiresSchemaVersion(major=1, minor=200) - fun annotatedMethod(){} - - @RequiresSchemaVersion(major=1, minor=200) - fun unreferencedMethod(){} - - companion object { - @RequiresSchemaVersion(major=1, minor=200) - const val ANNOTATED_CONST = 10 - } -} -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -`src/foo/Bar.kt`: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~kotlin linenumbers -package foo -import androidx.wear.protolayout.expression.RequiresSchemaVersion - -class Bar { - private val withAnnotation = WithAnnotation() - private val fieldAssignment = withAnnotation.annotatedMethod() - - @RequiresSchemaVersion(major=1, minor=200) - fun bar() {} - - fun baz() { - bar() - withAnnotation.unAnnotatedMethod() - withAnnotation.annotatedMethod() - //TODO: b/308552481 - This should fail - val b = withAnnotation.ANNOTATED_CONST - } -} -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -You can also visit the -[source code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/test/java/ProtoLayoutMinSchemaDetectorTest.kt) -for the unit tests for this check to see additional scenarios. - -The above example was automatically extracted from the first unit test -found for this lint check, `ProtoLayoutMinSchemaDetector.calling V1_2 API requires SDK version check`. -To report a problem with this extracted sample, visit -https://issuetracker.google.com/issues/new?component=1112273. - -(##) Repackaged - -This lint check appears to have been packaged in other artifacts as -well. Issue id's must be unique, so you cannot combine these libraries. -Also defined in: -* ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API (this issue) -* [ProtoLayoutMinSchema from androidx.wear.protolayout:protolayout-expression:1.2.0](ProtoLayoutMinSchema.md.html) -* [ProtoLayoutMinSchema from androidx.wear.protolayout:protolayout-material:1.2.0](ProtoLayoutMinSchema-2.md.html) -* [ProtoLayoutMinSchema from androidx.wear.protolayout:protolayout:1.2.0](ProtoLayoutMinSchema-3.md.html) - - -(##) Including - -!!! - This is not a built-in check. To include it, add the below dependency - to your project. - -``` -// build.gradle.kts -implementation("androidx.wear.protolayout:protolayout:1.2.0") - -// build.gradle -implementation 'androidx.wear.protolayout:protolayout:1.2.0' - -// build.gradle.kts with version catalogs: -implementation(libs.protolayout) - -# libs.versions.toml -[versions] -protolayout = "1.2.0" -[libraries] -# For clarity and text wrapping purposes the following declaration is -# shown split up across lines, but in TOML it needs to be on a single -# line (see https://github.com/toml-lang/toml/issues/516) so adjust -# when pasting into libs.versions.toml: -protolayout = { - module = "androidx.wear.protolayout:protolayout", - version.ref = "protolayout" -} -``` - -1.2.0 is the version this documentation was generated from; -there may be newer versions available. - -[Additional details about androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html). -(##) Suppressing - -You can suppress false positives using one of the following mechanisms: - -* Using a suppression annotation like this on the enclosing - element: - - ```kt - // Kotlin - @Suppress("ProtoLayoutMinSchema") - fun method() { - problematicStatement() - } - ``` - - or - - ```java - // Java - @SuppressWarnings("ProtoLayoutMinSchema") - void method() { - problematicStatement(); - } - ``` - -* Using a suppression comment like this on the line above: - - ```kt - //noinspection ProtoLayoutMinSchema - problematicStatement() - ``` - -* Using a special `lint.xml` file in the source tree which turns off - the check in that folder and any sub folder. A simple file might look - like this: - ```xml - <?xml version="1.0" encoding="UTF-8"?> - <lint> - <issue id="ProtoLayoutMinSchema" severity="ignore" /> - </lint> - ``` - Instead of `ignore` you can also change the severity here, for - example from `error` to `warning`. You can find additional - documentation on how to filter issues by path, regular expression and - so on - [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). - -* In Gradle projects, using the DSL syntax to configure lint. For - example, you can use something like - ```gradle - lintOptions { - disable 'ProtoLayoutMinSchema' - } - ``` - In Android projects this should be nested inside an `android { }` - block. - -* For manual invocations of `lint`, using the `--ignore` flag: - ``` - $ lint --ignore ProtoLayoutMinSchema ...` - ``` - -* Last, but not least, using baselines, as discussed - [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). - - \ No newline at end of file diff --git a/docs/checks/ProtoLayoutMinSchema.md.html b/docs/checks/ProtoLayoutMinSchema.md.html index c6e4f20d..a1031ffd 100644 --- a/docs/checks/ProtoLayoutMinSchema.md.html +++ b/docs/checks/ProtoLayoutMinSchema.md.html @@ -21,11 +21,11 @@ Feedback : https://issuetracker.google.com/issues/new?component=1112273 Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: [androidx.wear.protolayout:protolayout-expression](androidx_wear_protolayout_protolayout-expression.md.html) +: [androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html) Affects : Kotlin and Java files @@ -130,17 +130,6 @@ To report a problem with this extracted sample, visit https://issuetracker.google.com/issues/new?component=1112273. -(##) Repackaged - -This lint check appears to have been packaged in other artifacts as -well. Issue id's must be unique, so you cannot combine these libraries. -Also defined in: -* ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API (this issue) -* [ProtoLayoutMinSchema from androidx.wear.protolayout:protolayout-expression:1.2.0](ProtoLayoutMinSchema.md.html) -* [ProtoLayoutMinSchema from androidx.wear.protolayout:protolayout-material:1.2.0](ProtoLayoutMinSchema-2.md.html) -* [ProtoLayoutMinSchema from androidx.wear.protolayout:protolayout:1.2.0](ProtoLayoutMinSchema-3.md.html) - - (##) Including !!! @@ -149,32 +138,39 @@ ``` // build.gradle.kts -implementation("androidx.wear.protolayout:protolayout-expression:1.2.0") +implementation("androidx.wear.protolayout:protolayout:1.3.0-alpha04") // build.gradle -implementation 'androidx.wear.protolayout:protolayout-expression:1.2.0' +implementation 'androidx.wear.protolayout:protolayout:1.3.0-alpha04' // build.gradle.kts with version catalogs: -implementation(libs.protolayout.expression) +implementation(libs.protolayout) # libs.versions.toml [versions] -protolayout-expression = "1.2.0" +protolayout = "1.3.0-alpha04" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single # line (see https://github.com/toml-lang/toml/issues/516) so adjust # when pasting into libs.versions.toml: -protolayout-expression = { - module = "androidx.wear.protolayout:protolayout-expression", - version.ref = "protolayout-expression" +protolayout = { + module = "androidx.wear.protolayout:protolayout", + version.ref = "protolayout" } ``` -1.2.0 is the version this documentation was generated from; +1.3.0-alpha04 is the version this documentation was generated from; there may be newer versions available. -[Additional details about androidx.wear.protolayout:protolayout-expression](androidx_wear_protolayout_protolayout-expression.md.html). +NOTE: These lint checks are **also** made available separate from the main library. +Use one of the following artifacts: +* `androidx.wear.protolayout:protolayout-expression:1.3.0-alpha04` +* `androidx.wear.protolayout:protolayout-material3:1.3.0-alpha04` +* `androidx.wear.protolayout:protolayout-material:1.3.0-alpha04` + + +[Additional details about androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html). (##) Suppressing You can suppress false positives using one of the following mechanisms: diff --git a/docs/checks/ProtoLayoutPrimaryLayoutResponsive-2.md.html b/docs/checks/ProtoLayoutPrimaryLayoutResponsive-2.md.html deleted file mode 100644 index cb3805cb..00000000 --- a/docs/checks/ProtoLayoutPrimaryLayoutResponsive-2.md.html +++ /dev/null @@ -1,265 +0,0 @@ - -(#) ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales - -!!! WARNING: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales - This is a warning. - -Id -: `ProtoLayoutPrimaryLayoutResponsive` -Summary -: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales -Severity -: Warning -Category -: Correctness -Platform -: Android -Vendor -: Android Open Source Project -Identifier -: androidx.wear.protolayout -Feedback -: https://issuetracker.google.com/issues/new?component=1112273 -Min -: Lint 8.0 and 8.1 -Compiled -: Lint 8.0 and 8.1 -Artifact -: [androidx.wear.protolayout:protolayout-material](androidx_wear_protolayout_protolayout-material.md.html) - -Affects -: Kotlin and Java files -Editing -: This check runs on the fly in the IDE editor -Implementation -: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/main/java/androidx/wear/protolayout/lint/ResponsiveLayoutDetector.kt) -Tests -: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/test/java/PrimaryLayoutResponsiveDetectorTest.kt) -Copyright Year -: 2024 - -It is highly recommended to use the latest -setResponsiveInsetEnabled(true) when you're -using the ProtoLayout's PrimaryLayout. - -This is will take care of all inner padding to ensure that content of -labels and bottom -chip doesn't go off the screen (especially with different locales). - -!!! Tip - This lint check has an associated quickfix available in the IDE. - -(##) Example - -Here is an example of lint warnings produced by this check: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text -src/foo/Bar.kt:4:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] -val layout = PrimaryLayout.Builder(null) - --------------------- -src/foo/Bar.kt:9:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] - val layout = PrimaryLayout.Builder(null) - --------------------- -src/foo/Bar.kt:12:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] - val layoutFalse = PrimaryLayout.Builder(null) - --------------------- -src/foo/Bar.kt:17:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] - val l = PrimaryLayout.Builder(null) - --------------------- -src/foo/Bar.kt:24:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] - PrimaryLayout.Builder().setResponsiveContentInsetEnabled(enabled) - --------------------- -src/foo/Bar.kt:32:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] - return PrimaryLayout.Builder().build() - --------------------- -src/foo/Bar.kt:36:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] - PrimaryLayout.Builder() - --------------------- -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Here is the source file referenced above: - -`src/foo/Bar.kt`: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~kotlin linenumbers -package foo -import androidx.wear.protolayout.material.layouts.PrimaryLayout - -val layout = PrimaryLayout.Builder(null) - .setResponsiveContentInsetEnabled(false) - .build() - -class Bar { - val layout = PrimaryLayout.Builder(null) - .build() - - val layoutFalse = PrimaryLayout.Builder(null) - .setResponsiveContentInsetEnabled(false) - .build() - - fun buildFalse() { - val l = PrimaryLayout.Builder(null) - .setResponsiveContentInsetEnabled(false) - return l.build() - } - - fun update() { - val enabled = false - PrimaryLayout.Builder().setResponsiveContentInsetEnabled(enabled) - } - - fun build() { - update().build() - } - - fun build2() { - return PrimaryLayout.Builder().build() - } - - fun doubleFalse() { - PrimaryLayout.Builder() - .setResponsiveContentInsetEnabled(true) - .setResponsiveContentInsetEnabled(false) - } -} -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -You can also visit the -[source code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/test/java/PrimaryLayoutResponsiveDetectorTest.kt) -for the unit tests for this check to see additional scenarios. - -The above example was automatically extracted from the first unit test -found for this lint check, `ResponsiveLayoutDetector.primaryLayout without responsiveness requires and fixes setter`. -To report a problem with this extracted sample, visit -https://issuetracker.google.com/issues/new?component=1112273. - -(##) Repackaged - -This lint check appears to have been packaged in other artifacts as -well. Issue id's must be unique, so you cannot combine these libraries. -Also defined in: -* ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales (this issue) -* [ProtoLayoutPrimaryLayoutResponsive from androidx.wear.protolayout:protolayout-expression:1.2.0](ProtoLayoutPrimaryLayoutResponsive.md.html) -* [ProtoLayoutPrimaryLayoutResponsive from androidx.wear.protolayout:protolayout-material:1.2.0](ProtoLayoutPrimaryLayoutResponsive-2.md.html) -* [ProtoLayoutPrimaryLayoutResponsive from androidx.wear.protolayout:protolayout:1.2.0](ProtoLayoutPrimaryLayoutResponsive-3.md.html) - - -(##) Including - -!!! - This is not a built-in check. To include it, add the below dependency - to your project. - -``` -// build.gradle.kts -implementation("androidx.wear.protolayout:protolayout-material:1.2.0") - -// build.gradle -implementation 'androidx.wear.protolayout:protolayout-material:1.2.0' - -// build.gradle.kts with version catalogs: -implementation(libs.protolayout.material) - -# libs.versions.toml -[versions] -protolayout-material = "1.2.0" -[libraries] -# For clarity and text wrapping purposes the following declaration is -# shown split up across lines, but in TOML it needs to be on a single -# line (see https://github.com/toml-lang/toml/issues/516) so adjust -# when pasting into libs.versions.toml: -protolayout-material = { - module = "androidx.wear.protolayout:protolayout-material", - version.ref = "protolayout-material" -} -``` - -1.2.0 is the version this documentation was generated from; -there may be newer versions available. - -[Additional details about androidx.wear.protolayout:protolayout-material](androidx_wear_protolayout_protolayout-material.md.html). -(##) Suppressing - -You can suppress false positives using one of the following mechanisms: - -* Using a suppression annotation like this on the enclosing - element: - - ```kt - // Kotlin - @Suppress("ProtoLayoutPrimaryLayoutResponsive") - fun method() { - Builder(...) - } - ``` - - or - - ```java - // Java - @SuppressWarnings("ProtoLayoutPrimaryLayoutResponsive") - void method() { - new Builder(...); - } - ``` - -* Using a suppression comment like this on the line above: - - ```kt - //noinspection ProtoLayoutPrimaryLayoutResponsive - problematicStatement() - ``` - -* Using a special `lint.xml` file in the source tree which turns off - the check in that folder and any sub folder. A simple file might look - like this: - ```xml - <?xml version="1.0" encoding="UTF-8"?> - <lint> - <issue id="ProtoLayoutPrimaryLayoutResponsive" severity="ignore" /> - </lint> - ``` - Instead of `ignore` you can also change the severity here, for - example from `error` to `warning`. You can find additional - documentation on how to filter issues by path, regular expression and - so on - [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). - -* In Gradle projects, using the DSL syntax to configure lint. For - example, you can use something like - ```gradle - lintOptions { - disable 'ProtoLayoutPrimaryLayoutResponsive' - } - ``` - In Android projects this should be nested inside an `android { }` - block. - -* For manual invocations of `lint`, using the `--ignore` flag: - ``` - $ lint --ignore ProtoLayoutPrimaryLayoutResponsive ...` - ``` - -* Last, but not least, using baselines, as discussed - [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). - - \ No newline at end of file diff --git a/docs/checks/ProtoLayoutPrimaryLayoutResponsive-3.md.html b/docs/checks/ProtoLayoutPrimaryLayoutResponsive-3.md.html deleted file mode 100644 index 798aa046..00000000 --- a/docs/checks/ProtoLayoutPrimaryLayoutResponsive-3.md.html +++ /dev/null @@ -1,265 +0,0 @@ - -(#) ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales - -!!! WARNING: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales - This is a warning. - -Id -: `ProtoLayoutPrimaryLayoutResponsive` -Summary -: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales -Severity -: Warning -Category -: Correctness -Platform -: Android -Vendor -: Android Open Source Project -Identifier -: androidx.wear.protolayout -Feedback -: https://issuetracker.google.com/issues/new?component=1112273 -Min -: Lint 8.0 and 8.1 -Compiled -: Lint 8.0 and 8.1 -Artifact -: [androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html) - -Affects -: Kotlin and Java files -Editing -: This check runs on the fly in the IDE editor -Implementation -: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/main/java/androidx/wear/protolayout/lint/ResponsiveLayoutDetector.kt) -Tests -: [Source Code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/test/java/PrimaryLayoutResponsiveDetectorTest.kt) -Copyright Year -: 2024 - -It is highly recommended to use the latest -setResponsiveInsetEnabled(true) when you're -using the ProtoLayout's PrimaryLayout. - -This is will take care of all inner padding to ensure that content of -labels and bottom -chip doesn't go off the screen (especially with different locales). - -!!! Tip - This lint check has an associated quickfix available in the IDE. - -(##) Example - -Here is an example of lint warnings produced by this check: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text -src/foo/Bar.kt:4:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] -val layout = PrimaryLayout.Builder(null) - --------------------- -src/foo/Bar.kt:9:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] - val layout = PrimaryLayout.Builder(null) - --------------------- -src/foo/Bar.kt:12:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] - val layoutFalse = PrimaryLayout.Builder(null) - --------------------- -src/foo/Bar.kt:17:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] - val l = PrimaryLayout.Builder(null) - --------------------- -src/foo/Bar.kt:24:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] - PrimaryLayout.Builder().setResponsiveContentInsetEnabled(enabled) - --------------------- -src/foo/Bar.kt:32:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] - return PrimaryLayout.Builder().build() - --------------------- -src/foo/Bar.kt:36:Warning: PrimaryLayout used, but responsiveness isn't -set: Please call -setResponsiveContentInsetEnabled(true) for the best results across -different screen sizes. [ProtoLayoutPrimaryLayoutResponsive] - PrimaryLayout.Builder() - --------------------- -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Here is the source file referenced above: - -`src/foo/Bar.kt`: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~kotlin linenumbers -package foo -import androidx.wear.protolayout.material.layouts.PrimaryLayout - -val layout = PrimaryLayout.Builder(null) - .setResponsiveContentInsetEnabled(false) - .build() - -class Bar { - val layout = PrimaryLayout.Builder(null) - .build() - - val layoutFalse = PrimaryLayout.Builder(null) - .setResponsiveContentInsetEnabled(false) - .build() - - fun buildFalse() { - val l = PrimaryLayout.Builder(null) - .setResponsiveContentInsetEnabled(false) - return l.build() - } - - fun update() { - val enabled = false - PrimaryLayout.Builder().setResponsiveContentInsetEnabled(enabled) - } - - fun build() { - update().build() - } - - fun build2() { - return PrimaryLayout.Builder().build() - } - - fun doubleFalse() { - PrimaryLayout.Builder() - .setResponsiveContentInsetEnabled(true) - .setResponsiveContentInsetEnabled(false) - } -} -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -You can also visit the -[source code](https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:/wear/protolayout/protolayout-lint/src/test/java/PrimaryLayoutResponsiveDetectorTest.kt) -for the unit tests for this check to see additional scenarios. - -The above example was automatically extracted from the first unit test -found for this lint check, `ResponsiveLayoutDetector.primaryLayout without responsiveness requires and fixes setter`. -To report a problem with this extracted sample, visit -https://issuetracker.google.com/issues/new?component=1112273. - -(##) Repackaged - -This lint check appears to have been packaged in other artifacts as -well. Issue id's must be unique, so you cannot combine these libraries. -Also defined in: -* ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales (this issue) -* [ProtoLayoutPrimaryLayoutResponsive from androidx.wear.protolayout:protolayout-expression:1.2.0](ProtoLayoutPrimaryLayoutResponsive.md.html) -* [ProtoLayoutPrimaryLayoutResponsive from androidx.wear.protolayout:protolayout-material:1.2.0](ProtoLayoutPrimaryLayoutResponsive-2.md.html) -* [ProtoLayoutPrimaryLayoutResponsive from androidx.wear.protolayout:protolayout:1.2.0](ProtoLayoutPrimaryLayoutResponsive-3.md.html) - - -(##) Including - -!!! - This is not a built-in check. To include it, add the below dependency - to your project. - -``` -// build.gradle.kts -implementation("androidx.wear.protolayout:protolayout:1.2.0") - -// build.gradle -implementation 'androidx.wear.protolayout:protolayout:1.2.0' - -// build.gradle.kts with version catalogs: -implementation(libs.protolayout) - -# libs.versions.toml -[versions] -protolayout = "1.2.0" -[libraries] -# For clarity and text wrapping purposes the following declaration is -# shown split up across lines, but in TOML it needs to be on a single -# line (see https://github.com/toml-lang/toml/issues/516) so adjust -# when pasting into libs.versions.toml: -protolayout = { - module = "androidx.wear.protolayout:protolayout", - version.ref = "protolayout" -} -``` - -1.2.0 is the version this documentation was generated from; -there may be newer versions available. - -[Additional details about androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html). -(##) Suppressing - -You can suppress false positives using one of the following mechanisms: - -* Using a suppression annotation like this on the enclosing - element: - - ```kt - // Kotlin - @Suppress("ProtoLayoutPrimaryLayoutResponsive") - fun method() { - Builder(...) - } - ``` - - or - - ```java - // Java - @SuppressWarnings("ProtoLayoutPrimaryLayoutResponsive") - void method() { - new Builder(...); - } - ``` - -* Using a suppression comment like this on the line above: - - ```kt - //noinspection ProtoLayoutPrimaryLayoutResponsive - problematicStatement() - ``` - -* Using a special `lint.xml` file in the source tree which turns off - the check in that folder and any sub folder. A simple file might look - like this: - ```xml - <?xml version="1.0" encoding="UTF-8"?> - <lint> - <issue id="ProtoLayoutPrimaryLayoutResponsive" severity="ignore" /> - </lint> - ``` - Instead of `ignore` you can also change the severity here, for - example from `error` to `warning`. You can find additional - documentation on how to filter issues by path, regular expression and - so on - [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). - -* In Gradle projects, using the DSL syntax to configure lint. For - example, you can use something like - ```gradle - lintOptions { - disable 'ProtoLayoutPrimaryLayoutResponsive' - } - ``` - In Android projects this should be nested inside an `android { }` - block. - -* For manual invocations of `lint`, using the `--ignore` flag: - ``` - $ lint --ignore ProtoLayoutPrimaryLayoutResponsive ...` - ``` - -* Last, but not least, using baselines, as discussed - [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). - - \ No newline at end of file diff --git a/docs/checks/ProtoLayoutPrimaryLayoutResponsive.md.html b/docs/checks/ProtoLayoutPrimaryLayoutResponsive.md.html index f9ab5935..2c664341 100644 --- a/docs/checks/ProtoLayoutPrimaryLayoutResponsive.md.html +++ b/docs/checks/ProtoLayoutPrimaryLayoutResponsive.md.html @@ -21,11 +21,11 @@ Feedback : https://issuetracker.google.com/issues/new?component=1112273 Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: [androidx.wear.protolayout:protolayout-expression](androidx_wear_protolayout_protolayout-expression.md.html) +: [androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html) Affects : Kotlin and Java files @@ -152,17 +152,6 @@ To report a problem with this extracted sample, visit https://issuetracker.google.com/issues/new?component=1112273. -(##) Repackaged - -This lint check appears to have been packaged in other artifacts as -well. Issue id's must be unique, so you cannot combine these libraries. -Also defined in: -* ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales (this issue) -* [ProtoLayoutPrimaryLayoutResponsive from androidx.wear.protolayout:protolayout-expression:1.2.0](ProtoLayoutPrimaryLayoutResponsive.md.html) -* [ProtoLayoutPrimaryLayoutResponsive from androidx.wear.protolayout:protolayout-material:1.2.0](ProtoLayoutPrimaryLayoutResponsive-2.md.html) -* [ProtoLayoutPrimaryLayoutResponsive from androidx.wear.protolayout:protolayout:1.2.0](ProtoLayoutPrimaryLayoutResponsive-3.md.html) - - (##) Including !!! @@ -171,32 +160,39 @@ ``` // build.gradle.kts -implementation("androidx.wear.protolayout:protolayout-expression:1.2.0") +implementation("androidx.wear.protolayout:protolayout:1.3.0-alpha04") // build.gradle -implementation 'androidx.wear.protolayout:protolayout-expression:1.2.0' +implementation 'androidx.wear.protolayout:protolayout:1.3.0-alpha04' // build.gradle.kts with version catalogs: -implementation(libs.protolayout.expression) +implementation(libs.protolayout) # libs.versions.toml [versions] -protolayout-expression = "1.2.0" +protolayout = "1.3.0-alpha04" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single # line (see https://github.com/toml-lang/toml/issues/516) so adjust # when pasting into libs.versions.toml: -protolayout-expression = { - module = "androidx.wear.protolayout:protolayout-expression", - version.ref = "protolayout-expression" +protolayout = { + module = "androidx.wear.protolayout:protolayout", + version.ref = "protolayout" } ``` -1.2.0 is the version this documentation was generated from; +1.3.0-alpha04 is the version this documentation was generated from; there may be newer versions available. -[Additional details about androidx.wear.protolayout:protolayout-expression](androidx_wear_protolayout_protolayout-expression.md.html). +NOTE: These lint checks are **also** made available separate from the main library. +Use one of the following artifacts: +* `androidx.wear.protolayout:protolayout-expression:1.3.0-alpha04` +* `androidx.wear.protolayout:protolayout-material3:1.3.0-alpha04` +* `androidx.wear.protolayout:protolayout-material:1.3.0-alpha04` + + +[Additional details about androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html). (##) Suppressing You can suppress false positives using one of the following mechanisms: diff --git a/docs/checks/ProvidesMustNotBeAbstract.md.html b/docs/checks/ProvidesMustNotBeAbstract.md.html index cb5a7324..cee63460 100644 --- a/docs/checks/ProvidesMustNotBeAbstract.md.html +++ b/docs/checks/ProvidesMustNotBeAbstract.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -142,17 +142,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -164,7 +164,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/RawDispatchersUse.md.html b/docs/checks/RawDispatchersUse.md.html index 25eb5cff..7868b3ab 100644 --- a/docs/checks/RawDispatchersUse.md.html +++ b/docs/checks/RawDispatchersUse.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -116,17 +116,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -138,7 +138,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/RedactedInJavaUsage.md.html b/docs/checks/RedactedInJavaUsage.md.html index a386ac01..209d9b31 100644 --- a/docs/checks/RedactedInJavaUsage.md.html +++ b/docs/checks/RedactedInJavaUsage.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -144,17 +144,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -166,7 +166,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/RedundantBinds.md.html b/docs/checks/RedundantBinds.md.html index 0a6a1a4f..8c08e98b 100644 --- a/docs/checks/RedundantBinds.md.html +++ b/docs/checks/RedundantBinds.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -96,17 +96,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -118,7 +118,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/RememberReturnType.md.html b/docs/checks/RememberReturnType.md.html index 394650d1..05b771e0 100644 --- a/docs/checks/RememberReturnType.md.html +++ b/docs/checks/RememberReturnType.md.html @@ -244,17 +244,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -266,9 +266,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/RememberSaveableSaverParameter.md.html b/docs/checks/RememberSaveableSaverParameter.md.html index 4ed420d5..badaf6ef 100644 --- a/docs/checks/RememberSaveableSaverParameter.md.html +++ b/docs/checks/RememberSaveableSaverParameter.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.runtime:runtime-saveable-android](androidx_compose_runtime_runtime-saveable-android.md.html) @@ -130,17 +130,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-saveable-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-saveable-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-saveable-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-saveable-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.saveable.android) # libs.versions.toml [versions] -runtime-saveable-android = "1.8.0-alpha02" +runtime-saveable-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -152,9 +152,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-saveable-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-saveable-android](androidx_compose_runtime_runtime-saveable-android.md.html). (##) Suppressing diff --git a/docs/checks/RemoveWorkManagerInitializer.md.html b/docs/checks/RemoveWorkManagerInitializer.md.html index 56d3b145..e3974835 100644 --- a/docs/checks/RemoveWorkManagerInitializer.md.html +++ b/docs/checks/RemoveWorkManagerInitializer.md.html @@ -25,7 +25,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.work:work-runtime](androidx_work_work-runtime.md.html) @@ -101,17 +101,17 @@ ``` // build.gradle.kts -implementation("androidx.work:work-runtime:2.10.0-alpha04") +implementation("androidx.work:work-runtime:2.10.0") // build.gradle -implementation 'androidx.work:work-runtime:2.10.0-alpha04' +implementation 'androidx.work:work-runtime:2.10.0' // build.gradle.kts with version catalogs: implementation(libs.work.runtime) # libs.versions.toml [versions] -work-runtime = "2.10.0-alpha04" +work-runtime = "2.10.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -123,7 +123,7 @@ } ``` -2.10.0-alpha04 is the version this documentation was generated from; +2.10.0 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.work:work-runtime](androidx_work_work-runtime.md.html). diff --git a/docs/checks/RepeatOnLifecycleWrongUsage-2.md.html b/docs/checks/RepeatOnLifecycleWrongUsage-2.md.html index 30c525d5..234ad340 100644 --- a/docs/checks/RepeatOnLifecycleWrongUsage-2.md.html +++ b/docs/checks/RepeatOnLifecycleWrongUsage-2.md.html @@ -38,7 +38,7 @@ Copyright Year : 2021 -The repeatOnLifecycle APIs should be used when the View is created, +The repeatOnLifecycle APIs should be used when the View is created, that is in the `onCreate` lifecycle method for Activities, or `onViewCreated` in case you're using Fragments. @@ -48,7 +48,7 @@ well. Issue id's must be unique, so you cannot combine these libraries. Also defined in: * RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle (this issue) -* [RepeatOnLifecycleWrongUsage from androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03](RepeatOnLifecycleWrongUsage.md.html) +* [RepeatOnLifecycleWrongUsage from androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07](RepeatOnLifecycleWrongUsage.md.html) * [RepeatOnLifecycleWrongUsage from androidx.lifecycle:lifecycle-runtime-ktx:2.8.0-alpha01](RepeatOnLifecycleWrongUsage-2.md.html) diff --git a/docs/checks/RepeatOnLifecycleWrongUsage.md.html b/docs/checks/RepeatOnLifecycleWrongUsage.md.html index da13e58c..33557a32 100644 --- a/docs/checks/RepeatOnLifecycleWrongUsage.md.html +++ b/docs/checks/RepeatOnLifecycleWrongUsage.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.lifecycle:lifecycle-runtime-android](androidx_lifecycle_lifecycle-runtime-android.md.html) @@ -38,7 +38,7 @@ Copyright Year : 2021 -The repeatOnLifecycle APIs should be used when the View is created, +The repeatOnLifecycle APIs should be used when the View is created, that is in the `onCreate` lifecycle method for Activities, or `onViewCreated` in case you're using Fragments. @@ -48,7 +48,7 @@ well. Issue id's must be unique, so you cannot combine these libraries. Also defined in: * RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle (this issue) -* [RepeatOnLifecycleWrongUsage from androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03](RepeatOnLifecycleWrongUsage.md.html) +* [RepeatOnLifecycleWrongUsage from androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07](RepeatOnLifecycleWrongUsage.md.html) * [RepeatOnLifecycleWrongUsage from androidx.lifecycle:lifecycle-runtime-ktx:2.8.0-alpha01](RepeatOnLifecycleWrongUsage-2.md.html) @@ -60,17 +60,17 @@ ``` // build.gradle.kts -implementation("androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03") +implementation("androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07") // build.gradle -implementation 'androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03' +implementation 'androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07' // build.gradle.kts with version catalogs: implementation(libs.lifecycle.runtime.android) # libs.versions.toml [versions] -lifecycle-runtime-android = "2.9.0-alpha03" +lifecycle-runtime-android = "2.9.0-alpha07" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -82,7 +82,7 @@ } ``` -2.9.0-alpha03 is the version this documentation was generated from; +2.9.0-alpha07 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.lifecycle:lifecycle-runtime-android](androidx_lifecycle_lifecycle-runtime-android.md.html). diff --git a/docs/checks/RestrictCallsTo.md.html b/docs/checks/RestrictCallsTo.md.html index 3e3e54ec..f3272473 100644 --- a/docs/checks/RestrictCallsTo.md.html +++ b/docs/checks/RestrictCallsTo.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -151,17 +151,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -173,7 +173,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/RetrofitUsage.md.html b/docs/checks/RetrofitUsage.md.html index e656b0c8..208563d0 100644 --- a/docs/checks/RetrofitUsage.md.html +++ b/docs/checks/RetrofitUsage.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -110,17 +110,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -132,7 +132,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/ReturnFromAwaitPointerEventScope.md.html b/docs/checks/ReturnFromAwaitPointerEventScope.md.html index cb5135a5..af840004 100644 --- a/docs/checks/ReturnFromAwaitPointerEventScope.md.html +++ b/docs/checks/ReturnFromAwaitPointerEventScope.md.html @@ -52,17 +52,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.android) # libs.versions.toml [versions] -ui-android = "1.8.0-alpha02" +ui-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -74,9 +74,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-android](androidx_compose_ui_ui-android.md.html). (##) Suppressing diff --git a/docs/checks/SensitiveExternalPath.md.html b/docs/checks/SensitiveExternalPath.md.html index 94324566..90dfc840 100644 --- a/docs/checks/SensitiveExternalPath.md.html +++ b/docs/checks/SensitiveExternalPath.md.html @@ -86,17 +86,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -108,7 +108,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/SerializableUsage.md.html b/docs/checks/SerializableUsage.md.html index 78772523..da62fc5f 100644 --- a/docs/checks/SerializableUsage.md.html +++ b/docs/checks/SerializableUsage.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -85,17 +85,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -107,7 +107,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/ComposeComposableModifier.md.html b/docs/checks/SlotReused.md.html similarity index 61% rename from docs/checks/ComposeComposableModifier.md.html rename to docs/checks/SlotReused.md.html index 3e9cff67..d20059e3 100644 --- a/docs/checks/ComposeComposableModifier.md.html +++ b/docs/checks/SlotReused.md.html @@ -1,13 +1,13 @@ -(#) Don't use @Composable builder functions for modifiers +(#) Slots should be invoked in at most one place -!!! ERROR: Don't use @Composable builder functions for modifiers +!!! ERROR: Slots should be invoked in at most one place This is an error. Id -: `ComposeComposableModifier` +: `SlotReused` Summary -: Don't use @Composable builder functions for modifiers +: Slots should be invoked in at most one place Severity : Error Category @@ -21,9 +21,9 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) @@ -32,39 +32,42 @@ Editing : This check runs on the fly in the IDE editor Implementation -: [Source Code](https://github.com/slackhq/compose-lints/tree/main/compose-lint-checks/src/main/java/slack/lint/compose/ModifierComposableDetector.kt) +: [Source Code](https://github.com/slackhq/compose-lints/tree/main/compose-lint-checks/src/main/java/slack/lint/compose/SlotReusedDetector.kt) Tests -: [Source Code](https://github.com/slackhq/compose-lints/tree/main/compose-lint-checks/src/test/java/slack/lint/compose/ModifierComposableDetectorTest.kt) +: [Source Code](https://github.com/slackhq/compose-lints/tree/main/compose-lint-checks/src/test/java/slack/lint/compose/SlotReusedDetectorTest.kt) Copyright Year -: 2023 - -Using @Composable builder functions for modifiers is not recommended, as -they cause unnecessary recompositions.You should use the Modifier.Node -API instead, as it limits recomposition to just the modifier instance, -rather than the whole function tree.See -https://slackhq.github.io/compose-lints/rules/#avoid-modifier-extension-factory-functions +: 2024 + +Slots should be invoked in at most once place to meet lifecycle +expectations. Slots should not be invoked in multiple places in source +code, where the invoking location changes based on some condition. This +will preserve the slot's internal state when the invoking location +changes. See +https://slackhq.github.io/compose-lints/rules/#do-not-invoke-slots-in-more-than-once-place for more information. (##) Example Here is an example of lint warnings produced by this check: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text -src/test.kt:4:Error: Using @Composable builder functions for modifiers -is not recommended, as they cause unnecessary recompositions.You should -use the Modifier.Node API instead, as it limits recomposition to just -the modifier instance, rather than the whole function tree.See -https://slackhq.github.io/compose-lints/rules/#avoid-modifier-extension-factory-functions -for more information. [ComposeComposableModifier] -@Composable -^ -src/test.kt:6:Error: Using @Composable builder functions for modifiers -is not recommended, as they cause unnecessary recompositions.You should -use the Modifier.Node API instead, as it limits recomposition to just -the modifier instance, rather than the whole function tree.See -https://slackhq.github.io/compose-lints/rules/#avoid-modifier-extension-factory-functions -for more information. [ComposeComposableModifier] -@Composable -^ +src/test.kt:7:Error: Slots should be invoked in at most once place to +meet lifecycle expectations. Slots should not be invoked in multiple +places in source code, where the invoking location changes based on some +condition. This will preserve the slot's internal state when the +invoking location changes. See +https://slackhq.github.io/compose-lints/rules/#do-not-invoke-slots-in-more-than-once-place +for more information. [SlotReused] + slot: @Composable () -> Unit, + ---------------------------- +src/test.kt:18:Error: Slots should be invoked in at most once place to +meet lifecycle expectations. Slots should not be invoked in multiple +places in source code, where the invoking location changes based on some +condition. This will preserve the slot's internal state when the +invoking location changes. See +https://slackhq.github.io/compose-lints/rules/#do-not-invoke-slots-in-more-than-once-place +for more information. [SlotReused] + slot: @Composable () -> Unit, + ---------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Here is the source file referenced above: @@ -75,17 +78,36 @@ import androidx.compose.ui.Modifier @Composable -fun Modifier.something1(): Modifier { } +fun Something( + modifier: Modifier = Modifier, + slot: @Composable () -> Unit, +) { + Row(modifier) { + slot() + slot() + } +} + @Composable -fun Modifier.something2() = somethingElse() +fun SomethingElse( + modifier: Modifier = Modifier, + slot: @Composable () -> Unit, +) { + Column(modifier) { + slot() + Box { + slot() + } + } +} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You can also visit the -[source code](https://github.com/slackhq/compose-lints/tree/main/compose-lint-checks/src/test/java/slack/lint/compose/ModifierComposableDetectorTest.kt) +[source code](https://github.com/slackhq/compose-lints/tree/main/compose-lint-checks/src/test/java/slack/lint/compose/SlotReusedDetectorTest.kt) for the unit tests for this check to see additional scenarios. The above example was automatically extracted from the first unit test -found for this lint check, `ModifierComposableDetector.errors when a composable Modifier extension is detected`. +found for this lint check, `SlotReusedDetector.errors when the slot parameter of a Composable is used more than once at the same time`. To report a problem with this extracted sample, visit https://github.com/slackhq/compose-lints/issues. @@ -98,17 +120,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -120,7 +142,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html). @@ -133,7 +155,7 @@ ```kt // Kotlin - @Suppress("ComposeComposableModifier") + @Suppress("SlotReused") fun method() { problematicStatement() } @@ -143,7 +165,7 @@ ```java // Java - @SuppressWarnings("ComposeComposableModifier") + @SuppressWarnings("SlotReused") void method() { problematicStatement(); } @@ -152,7 +174,7 @@ * Using a suppression comment like this on the line above: ```kt - //noinspection ComposeComposableModifier + //noinspection SlotReused problematicStatement() ``` @@ -162,7 +184,7 @@ ```xml <?xml version="1.0" encoding="UTF-8"?> <lint> - <issue id="ComposeComposableModifier" severity="ignore" /> + <issue id="SlotReused" severity="ignore" /> </lint> ``` Instead of `ignore` you can also change the severity here, for @@ -175,7 +197,7 @@ example, you can use something like ```gradle lintOptions { - disable 'ComposeComposableModifier' + disable 'SlotReused' } ``` In Android projects this should be nested inside an `android { }` @@ -183,7 +205,7 @@ * For manual invocations of `lint`, using the `--ignore` flag: ``` - $ lint --ignore ComposeComposableModifier ...` + $ lint --ignore SlotReused ...` ``` * Last, but not least, using baselines, as discussed diff --git a/docs/checks/SpanMarkPointMissingMask.md.html b/docs/checks/SpanMarkPointMissingMask.md.html index 878f9f7b..e007eeb2 100644 --- a/docs/checks/SpanMarkPointMissingMask.md.html +++ b/docs/checks/SpanMarkPointMissingMask.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -91,17 +91,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -113,7 +113,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/SpecifyForegroundServiceType.md.html b/docs/checks/SpecifyForegroundServiceType.md.html index 337f919f..290576e2 100644 --- a/docs/checks/SpecifyForegroundServiceType.md.html +++ b/docs/checks/SpecifyForegroundServiceType.md.html @@ -25,7 +25,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.work:work-runtime](androidx_work_work-runtime.md.html) @@ -88,17 +88,17 @@ ``` // build.gradle.kts -implementation("androidx.work:work-runtime:2.10.0-alpha04") +implementation("androidx.work:work-runtime:2.10.0") // build.gradle -implementation 'androidx.work:work-runtime:2.10.0-alpha04' +implementation 'androidx.work:work-runtime:2.10.0' // build.gradle.kts with version catalogs: implementation(libs.work.runtime) # libs.versions.toml [versions] -work-runtime = "2.10.0-alpha04" +work-runtime = "2.10.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -110,7 +110,7 @@ } ``` -2.10.0-alpha04 is the version this documentation was generated from; +2.10.0 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.work:work-runtime](androidx_work_work-runtime.md.html). diff --git a/docs/checks/SpecifyJobSchedulerIdRange.md.html b/docs/checks/SpecifyJobSchedulerIdRange.md.html index f06b87b4..552db237 100644 --- a/docs/checks/SpecifyJobSchedulerIdRange.md.html +++ b/docs/checks/SpecifyJobSchedulerIdRange.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.work:work-runtime](androidx_work_work-runtime.md.html) @@ -40,7 +40,7 @@ When using `JobScheduler` APIs directly, `WorkManager` requires that developers specify a range of `JobScheduler` ids that are safe for -`WorkManager` to use so the `id`s do not collide. +`WorkManager` to use so the `id`s do not collide. For more information look at `androidx.work.Configuration.Builder.setJobSchedulerJobIdRange(int, int)`. @@ -83,17 +83,17 @@ ``` // build.gradle.kts -implementation("androidx.work:work-runtime:2.10.0-alpha04") +implementation("androidx.work:work-runtime:2.10.0") // build.gradle -implementation 'androidx.work:work-runtime:2.10.0-alpha04' +implementation 'androidx.work:work-runtime:2.10.0' // build.gradle.kts with version catalogs: implementation(libs.work.runtime) # libs.versions.toml [versions] -work-runtime = "2.10.0-alpha04" +work-runtime = "2.10.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -105,7 +105,7 @@ } ``` -2.10.0-alpha04 is the version this documentation was generated from; +2.10.0 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.work:work-runtime](androidx_work_work-runtime.md.html). diff --git a/docs/checks/StateFlowValueCalledInComposition.md.html b/docs/checks/StateFlowValueCalledInComposition.md.html index 92b67fb5..831e2bd1 100644 --- a/docs/checks/StateFlowValueCalledInComposition.md.html +++ b/docs/checks/StateFlowValueCalledInComposition.md.html @@ -194,17 +194,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -216,9 +216,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/StrandhoggVulnerable.md.html b/docs/checks/StrandhoggVulnerable.md.html index 9baf87d1..f949ecf2 100644 --- a/docs/checks/StrandhoggVulnerable.md.html +++ b/docs/checks/StrandhoggVulnerable.md.html @@ -87,17 +87,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -109,7 +109,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/SubscribeOnMain.md.html b/docs/checks/SubscribeOnMain.md.html index d2b3d1f9..0a994b27 100644 --- a/docs/checks/SubscribeOnMain.md.html +++ b/docs/checks/SubscribeOnMain.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -110,17 +110,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -132,7 +132,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/SuspiciousCompositionLocalModifierRead.md.html b/docs/checks/SuspiciousCompositionLocalModifierRead.md.html index 186d3f36..6e595ae0 100644 --- a/docs/checks/SuspiciousCompositionLocalModifierRead.md.html +++ b/docs/checks/SuspiciousCompositionLocalModifierRead.md.html @@ -116,17 +116,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.android) # libs.versions.toml [versions] -ui-android = "1.8.0-alpha02" +ui-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -138,9 +138,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-android](androidx_compose_ui_ui-android.md.html). (##) Suppressing diff --git a/docs/checks/SuspiciousModifierThen.md.html b/docs/checks/SuspiciousModifierThen.md.html index c41e2c59..a1561bcc 100644 --- a/docs/checks/SuspiciousModifierThen.md.html +++ b/docs/checks/SuspiciousModifierThen.md.html @@ -106,17 +106,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.android) # libs.versions.toml [versions] -ui-android = "1.8.0-alpha02" +ui-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -128,9 +128,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-android](androidx_compose_ui_ui-android.md.html). (##) Suppressing diff --git a/docs/checks/TapjackingVulnerable.md.html b/docs/checks/TapjackingVulnerable.md.html index ed16faa0..069730bc 100644 --- a/docs/checks/TapjackingVulnerable.md.html +++ b/docs/checks/TapjackingVulnerable.md.html @@ -87,17 +87,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -109,7 +109,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/TestLifecycleOwnerInCoroutine.md.html b/docs/checks/TestLifecycleOwnerInCoroutine.md.html index 7ce95f4c..0a4f036b 100644 --- a/docs/checks/TestLifecycleOwnerInCoroutine.md.html +++ b/docs/checks/TestLifecycleOwnerInCoroutine.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.lifecycle:lifecycle-runtime-testing](androidx_lifecycle_lifecycle-runtime-testing.md.html) @@ -38,11 +38,11 @@ Copyright Year : 2021 -When using TestLifecycleOwner, one of the main use cases is to change +When using TestLifecycleOwner, one of the main use cases is to change the currentState property. Under the hood, we do this using runBlocking to keep it thread-safe. However, when using TestLifecycleOwner from the context of a coroutine (like -runTest), this will cause the setter to hang, since coroutines +runTest), this will cause the setter to hang, since coroutines should remain asynchronous. (##) Example @@ -99,17 +99,17 @@ ``` // build.gradle.kts -implementation("androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha03") +implementation("androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha07") // build.gradle -implementation 'androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha03' +implementation 'androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha07' // build.gradle.kts with version catalogs: implementation(libs.lifecycle.runtime.testing) # libs.versions.toml [versions] -lifecycle-runtime-testing = "2.9.0-alpha03" +lifecycle-runtime-testing = "2.9.0-alpha07" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -121,7 +121,7 @@ } ``` -2.9.0-alpha03 is the version this documentation was generated from; +2.9.0-alpha07 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.lifecycle:lifecycle-runtime-testing](androidx_lifecycle_lifecycle-runtime-testing.md.html). diff --git a/docs/checks/TestManifestGradleConfiguration.md.html b/docs/checks/TestManifestGradleConfiguration.md.html index 946dc864..a41419db 100644 --- a/docs/checks/TestManifestGradleConfiguration.md.html +++ b/docs/checks/TestManifestGradleConfiguration.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.ui:ui-test-manifest](androidx_compose_ui_ui-test-manifest.md.html) @@ -111,17 +111,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-test-manifest:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-test-manifest:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-test-manifest:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-test-manifest:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.test.manifest) # libs.versions.toml [versions] -ui-test-manifest = "1.8.0-alpha02" +ui-test-manifest = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -133,9 +133,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-test-manifest-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-test-manifest](androidx_compose_ui_ui-test-manifest.md.html). (##) Suppressing diff --git a/docs/checks/TextFields.md.html b/docs/checks/TextFields.md.html index 063bdd09..d9d110dc 100644 --- a/docs/checks/TextFields.md.html +++ b/docs/checks/TextFields.md.html @@ -32,7 +32,7 @@ Providing an `inputType` attribute on a text field improves usability because depending on the data to be input, optimized keyboards can be shown to the user (such as just digits and parentheses for a phone -number). +number). The lint detector also looks at the `id` of the view, and if the id offers a hint of the purpose of the field (for example, the `id` diff --git a/docs/checks/UnintendedExposedUrl.md.html b/docs/checks/UnintendedExposedUrl.md.html index 1991916c..104d64dd 100644 --- a/docs/checks/UnintendedExposedUrl.md.html +++ b/docs/checks/UnintendedExposedUrl.md.html @@ -102,17 +102,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -124,7 +124,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/UnintendedPrivateIpAddress.md.html b/docs/checks/UnintendedPrivateIpAddress.md.html index b71d5f3e..804c9b1c 100644 --- a/docs/checks/UnintendedPrivateIpAddress.md.html +++ b/docs/checks/UnintendedPrivateIpAddress.md.html @@ -103,17 +103,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -125,7 +125,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/UnnecessaryComposedModifier.md.html b/docs/checks/UnnecessaryComposedModifier.md.html index 4de8eab1..2629fbd3 100644 --- a/docs/checks/UnnecessaryComposedModifier.md.html +++ b/docs/checks/UnnecessaryComposedModifier.md.html @@ -112,17 +112,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.android) # libs.versions.toml [versions] -ui-android = "1.8.0-alpha02" +ui-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -134,9 +134,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.ui:ui-android](androidx_compose_ui_ui-android.md.html). (##) Suppressing diff --git a/docs/checks/UnrememberedAnimatable.md.html b/docs/checks/UnrememberedAnimatable.md.html index 6f4c7e38..354c3faf 100644 --- a/docs/checks/UnrememberedAnimatable.md.html +++ b/docs/checks/UnrememberedAnimatable.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.animation:animation-core-android](androidx_compose_animation_animation-core-android.md.html) @@ -249,17 +249,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.animation:animation-core-android:1.8.0-alpha02") +implementation("androidx.compose.animation:animation-core-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.animation:animation-core-android:1.8.0-alpha02' +implementation 'androidx.compose.animation:animation-core-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.animation.core.android) # libs.versions.toml [versions] -animation-core-android = "1.8.0-alpha02" +animation-core-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -271,9 +271,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.animation:animation-core-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.animation:animation-core-android](androidx_compose_animation_animation-core-android.md.html). (##) Suppressing diff --git a/docs/checks/UnrememberedGetBackStackEntry.md.html b/docs/checks/UnrememberedGetBackStackEntry.md.html index 2977227c..48adff4c 100644 --- a/docs/checks/UnrememberedGetBackStackEntry.md.html +++ b/docs/checks/UnrememberedGetBackStackEntry.md.html @@ -169,17 +169,17 @@ ``` // build.gradle.kts -implementation("androidx.navigation:navigation-compose:2.8.1") +implementation("androidx.navigation:navigation-compose:2.9.0-alpha03") // build.gradle -implementation 'androidx.navigation:navigation-compose:2.8.1' +implementation 'androidx.navigation:navigation-compose:2.9.0-alpha03' // build.gradle.kts with version catalogs: implementation(libs.navigation.compose) # libs.versions.toml [versions] -navigation-compose = "2.8.1" +navigation-compose = "2.9.0-alpha03" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -191,7 +191,7 @@ } ``` -2.8.1 is the version this documentation was generated from; +2.9.0-alpha03 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.navigation:navigation-compose](androidx_navigation_navigation-compose.md.html). diff --git a/docs/checks/UnrememberedMutableInteractionSource.md.html b/docs/checks/UnrememberedMutableInteractionSource.md.html index e724a361..20708e0b 100644 --- a/docs/checks/UnrememberedMutableInteractionSource.md.html +++ b/docs/checks/UnrememberedMutableInteractionSource.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.foundation:foundation-android](androidx_compose_foundation_foundation-android.md.html) @@ -160,17 +160,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.foundation:foundation-android:1.8.0-alpha02") +implementation("androidx.compose.foundation:foundation-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.foundation:foundation-android:1.8.0-alpha02' +implementation 'androidx.compose.foundation:foundation-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.foundation.android) # libs.versions.toml [versions] -foundation-android = "1.8.0-alpha02" +foundation-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -182,9 +182,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.foundation:foundation-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.foundation:foundation-android](androidx_compose_foundation_foundation-android.md.html). (##) Suppressing diff --git a/docs/checks/UnrememberedMutableState.md.html b/docs/checks/UnrememberedMutableState.md.html index 6ad95ae7..79dfe0de 100644 --- a/docs/checks/UnrememberedMutableState.md.html +++ b/docs/checks/UnrememberedMutableState.md.html @@ -270,17 +270,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -292,9 +292,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.runtime:runtime-android](androidx_compose_runtime_runtime-android.md.html). (##) Suppressing diff --git a/docs/checks/UnsafeCryptoAlgorithmUsage.md.html b/docs/checks/UnsafeCryptoAlgorithmUsage.md.html index fdd6f8d5..4e626d47 100644 --- a/docs/checks/UnsafeCryptoAlgorithmUsage.md.html +++ b/docs/checks/UnsafeCryptoAlgorithmUsage.md.html @@ -95,17 +95,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -117,7 +117,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/UnsafeLifecycleWhenUsage-2.md.html b/docs/checks/UnsafeLifecycleWhenUsage-2.md.html index 8b5ab3b4..d43b7fb0 100644 --- a/docs/checks/UnsafeLifecycleWhenUsage-2.md.html +++ b/docs/checks/UnsafeLifecycleWhenUsage-2.md.html @@ -38,17 +38,17 @@ Copyright Year : 2019 -If the `Lifecycle` is destroyed within the block of +If the `Lifecycle` is destroyed within the block of `Lifecycle.whenStarted` or any similar `Lifecycle.when` method is suspended, the block will be cancelled, which will also cancel any child coroutine launched inside the -block. As as a result, If you have a try finally block - in your code, the finally might run after the Lifecycle moves outside +block. As as a result, If you have a try finally block + in your code, the finally might run after the Lifecycle moves outside the desired state. It is recommended to check the `Lifecycle.isAtLeast` before accessing UI in finally block. Similarly, if you have a catch statement that might catch `CancellationException`, you should -check the `Lifecycle.isAtLeast` before accessing the UI. See +check the `Lifecycle.isAtLeast` before accessing the UI. See documentation of `Lifecycle.whenStateAtLeast` for more details. (##) Repackaged @@ -57,7 +57,7 @@ well. Issue id's must be unique, so you cannot combine these libraries. Also defined in: * UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method (this issue) -* [UnsafeLifecycleWhenUsage from androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03](UnsafeLifecycleWhenUsage.md.html) +* [UnsafeLifecycleWhenUsage from androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07](UnsafeLifecycleWhenUsage.md.html) * [UnsafeLifecycleWhenUsage from androidx.lifecycle:lifecycle-runtime-ktx:2.8.0-alpha01](UnsafeLifecycleWhenUsage-2.md.html) diff --git a/docs/checks/UnsafeLifecycleWhenUsage.md.html b/docs/checks/UnsafeLifecycleWhenUsage.md.html index 8e28521b..bac5b231 100644 --- a/docs/checks/UnsafeLifecycleWhenUsage.md.html +++ b/docs/checks/UnsafeLifecycleWhenUsage.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.lifecycle:lifecycle-runtime-android](androidx_lifecycle_lifecycle-runtime-android.md.html) @@ -38,17 +38,17 @@ Copyright Year : 2019 -If the `Lifecycle` is destroyed within the block of +If the `Lifecycle` is destroyed within the block of `Lifecycle.whenStarted` or any similar `Lifecycle.when` method is suspended, the block will be cancelled, which will also cancel any child coroutine launched inside the -block. As as a result, If you have a try finally block - in your code, the finally might run after the Lifecycle moves outside +block. As as a result, If you have a try finally block + in your code, the finally might run after the Lifecycle moves outside the desired state. It is recommended to check the `Lifecycle.isAtLeast` before accessing UI in finally block. Similarly, if you have a catch statement that might catch `CancellationException`, you should -check the `Lifecycle.isAtLeast` before accessing the UI. See +check the `Lifecycle.isAtLeast` before accessing the UI. See documentation of `Lifecycle.whenStateAtLeast` for more details. (##) Repackaged @@ -57,7 +57,7 @@ well. Issue id's must be unique, so you cannot combine these libraries. Also defined in: * UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method (this issue) -* [UnsafeLifecycleWhenUsage from androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03](UnsafeLifecycleWhenUsage.md.html) +* [UnsafeLifecycleWhenUsage from androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07](UnsafeLifecycleWhenUsage.md.html) * [UnsafeLifecycleWhenUsage from androidx.lifecycle:lifecycle-runtime-ktx:2.8.0-alpha01](UnsafeLifecycleWhenUsage-2.md.html) @@ -69,17 +69,17 @@ ``` // build.gradle.kts -implementation("androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03") +implementation("androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07") // build.gradle -implementation 'androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03' +implementation 'androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07' // build.gradle.kts with version catalogs: implementation(libs.lifecycle.runtime.android) # libs.versions.toml [versions] -lifecycle-runtime-android = "2.9.0-alpha03" +lifecycle-runtime-android = "2.9.0-alpha07" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -91,7 +91,7 @@ } ``` -2.9.0-alpha03 is the version this documentation was generated from; +2.9.0-alpha07 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.lifecycle:lifecycle-runtime-android](androidx_lifecycle_lifecycle-runtime-android.md.html). diff --git a/docs/checks/UnsafeRepeatOnLifecycleDetector.md.html b/docs/checks/UnsafeRepeatOnLifecycleDetector.md.html index 6bf70058..09c29972 100644 --- a/docs/checks/UnsafeRepeatOnLifecycleDetector.md.html +++ b/docs/checks/UnsafeRepeatOnLifecycleDetector.md.html @@ -38,7 +38,7 @@ Copyright Year : 2021 -The repeatOnLifecycle APIs should be used with the viewLifecycleOwner +The repeatOnLifecycle APIs should be used with the viewLifecycleOwner in Fragments as opposed to lifecycleOwner. (##) Including @@ -49,17 +49,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment:1.8.3") +implementation("androidx.fragment:fragment:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment:1.8.3' +implementation 'androidx.fragment:fragment:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment) # libs.versions.toml [versions] -fragment = "1.8.3" +fragment = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -71,7 +71,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.fragment:fragment](androidx_fragment_fragment.md.html). diff --git a/docs/checks/UnsanitizedFilenameFromContentProvider-2.md.html b/docs/checks/UnsanitizedContentProviderFilename.md.html similarity index 59% rename from docs/checks/UnsanitizedFilenameFromContentProvider-2.md.html rename to docs/checks/UnsanitizedContentProviderFilename.md.html index 06bc3ce1..7f0dce58 100644 --- a/docs/checks/UnsanitizedFilenameFromContentProvider-2.md.html +++ b/docs/checks/UnsanitizedContentProviderFilename.md.html @@ -5,7 +5,7 @@ This is a warning. Id -: `UnsanitizedFilenameFromContentProvider` +: `UnsanitizedContentProviderFilename` Summary : Trusting ContentProvider filenames without any sanitization Severity @@ -32,7 +32,7 @@ Editing : This check runs on the fly in the IDE editor See -: https://goo.gle/UnsanitizedFilenameFromContentProvider +: https://goo.gle/UnsanitizedContentProviderFilename Implementation : [Source Code](https://github.com/google/android-security-lints/tree/main/checks/src/main/java/com/example/lint/checks/UnsafeFilenameDetector.kt) Tests @@ -45,62 +45,6 @@ client app should never trust this filename and should either sanitize it or completely discard it. -(##) Example - -Here is an example of lint warnings produced by this check: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text -src/TestClass.java:10:Warning: Using fileName is unsafe as it is a -filename obtained directly from a ContentProvider. You should sanitize -it before using it for creating a File. -[UnsanitizedFilenameFromContentProvider] - File fileObject = new File("./", fileName); - -------- -src/TestClass.kt:10:Warning: Using fileName is unsafe as it is a -filename obtained directly from a ContentProvider. You should sanitize -it before using it for creating a File. -[UnsanitizedFilenameFromContentProvider] - val fileObject = File("./", fileName) - -------- -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Here are the relevant source files: - -`src/TestClass.java`: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~java linenumbers -import android.database.Cursor; -import android.provider.OpenableColumns; -import java.io.File; - -class TestClass { - private void trustProvidedFilename_shouldWarn(Cursor cursor) { - int id = cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME); - String fileName = cursor.getString(id); - - File fileObject = new File("./", fileName); - } -} -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -`src/TestClass.kt`: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~kotlin linenumbers -import android.database.Cursor -import android.provider.OpenableColumns -import java.io.File - -class TestClass { - private fun trustProvidedFilename_shouldWarn(cursor: Cursor) { - val id = cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME) - val fileName = cursor.getString(id) - - val fileObject = File("./", fileName) - } -} -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -You can also visit the -[source code](https://github.com/google/android-security-lints/tree/main/checks/src/test/java/com/example/lint/checks/UnsafeFilenameDetectorTest.kt) -for the unit tests for this check to see additional scenarios. - (##) Including !!! @@ -110,17 +54,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -132,7 +76,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). @@ -145,7 +89,7 @@ ```kt // Kotlin - @Suppress("UnsanitizedFilenameFromContentProvider") + @Suppress("UnsanitizedContentProviderFilename") fun method() { getColumnIndex(...) } @@ -155,7 +99,7 @@ ```java // Java - @SuppressWarnings("UnsanitizedFilenameFromContentProvider") + @SuppressWarnings("UnsanitizedContentProviderFilename") void method() { getColumnIndex(...); } @@ -164,7 +108,7 @@ * Using a suppression comment like this on the line above: ```kt - //noinspection UnsanitizedFilenameFromContentProvider + //noinspection UnsanitizedContentProviderFilename problematicStatement() ``` @@ -174,7 +118,7 @@ ```xml <?xml version="1.0" encoding="UTF-8"?> <lint> - <issue id="UnsanitizedFilenameFromContentProvider" severity="ignore" /> + <issue id="UnsanitizedContentProviderFilename" severity="ignore" /> </lint> ``` Instead of `ignore` you can also change the severity here, for @@ -187,7 +131,7 @@ example, you can use something like ```gradle lintOptions { - disable 'UnsanitizedFilenameFromContentProvider' + disable 'UnsanitizedContentProviderFilename' } ``` In Android projects this should be nested inside an `android { }` @@ -195,7 +139,7 @@ * For manual invocations of `lint`, using the `--ignore` flag: ``` - $ lint --ignore UnsanitizedFilenameFromContentProvider ...` + $ lint --ignore UnsanitizedContentProviderFilename ...` ``` * Last, but not least, using baselines, as discussed diff --git a/docs/checks/UnsanitizedFilenameFromContentProvider.md.html b/docs/checks/UnsanitizedFilenameFromContentProvider.md.html index 424eafcb..8b8a5aeb 100644 --- a/docs/checks/UnsanitizedFilenameFromContentProvider.md.html +++ b/docs/checks/UnsanitizedFilenameFromContentProvider.md.html @@ -25,9 +25,9 @@ See : https://developer.android.com/privacy-and-security/risks/untrustworthy-contentprovider-provided-filename Implementation -: [Source Code](https://github.com/google/android-security-lints/tree/main/checks/src/main/java/com/example/lint/checks/UnsafeFilenameDetector.kt) +: [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/UnsafeFilenameDetector.kt) Tests -: [Source Code](https://github.com/google/android-security-lints/tree/main/checks/src/test/java/com/example/lint/checks/UnsafeFilenameDetectorTest.kt) +: [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/UnsafeFilenameDetectorTest.kt) Copyright Year : 2024 @@ -89,7 +89,7 @@ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You can also visit the -[source code](https://github.com/google/android-security-lints/tree/main/checks/src/test/java/com/example/lint/checks/UnsafeFilenameDetectorTest.kt) +[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/UnsafeFilenameDetectorTest.kt) for the unit tests for this check to see additional scenarios. (##) Suppressing diff --git a/docs/checks/UnusedBoxWithConstraintsScope.md.html b/docs/checks/UnusedBoxWithConstraintsScope.md.html index 93af28dd..0feeb614 100644 --- a/docs/checks/UnusedBoxWithConstraintsScope.md.html +++ b/docs/checks/UnusedBoxWithConstraintsScope.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.foundation:foundation-android](androidx_compose_foundation_foundation-android.md.html) @@ -101,17 +101,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.foundation:foundation-android:1.8.0-alpha02") +implementation("androidx.compose.foundation:foundation-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.foundation:foundation-android:1.8.0-alpha02' +implementation 'androidx.compose.foundation:foundation-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.foundation.android) # libs.versions.toml [versions] -foundation-android = "1.8.0-alpha02" +foundation-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -123,9 +123,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.foundation:foundation-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.foundation:foundation-android](androidx_compose_foundation_foundation-android.md.html). (##) Suppressing diff --git a/docs/checks/UnusedContentLambdaTargetStateParameter.md.html b/docs/checks/UnusedContentLambdaTargetStateParameter.md.html index 600bcf4c..c443dcb1 100644 --- a/docs/checks/UnusedContentLambdaTargetStateParameter.md.html +++ b/docs/checks/UnusedContentLambdaTargetStateParameter.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.animation:animation-android](androidx_compose_animation_animation-android.md.html) @@ -181,17 +181,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.animation:animation-android:1.8.0-alpha02") +implementation("androidx.compose.animation:animation-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.animation:animation-android:1.8.0-alpha02' +implementation 'androidx.compose.animation:animation-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.animation.android) # libs.versions.toml [versions] -animation-android = "1.8.0-alpha02" +animation-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -203,9 +203,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.animation:animation-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.animation:animation-android](androidx_compose_animation_animation-android.md.html). (##) Suppressing diff --git a/docs/checks/UnusedCrossfadeTargetStateParameter.md.html b/docs/checks/UnusedCrossfadeTargetStateParameter.md.html index aa9dac4f..699fc2ab 100644 --- a/docs/checks/UnusedCrossfadeTargetStateParameter.md.html +++ b/docs/checks/UnusedCrossfadeTargetStateParameter.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.animation:animation-android](androidx_compose_animation_animation-android.md.html) @@ -115,17 +115,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.animation:animation-android:1.8.0-alpha02") +implementation("androidx.compose.animation:animation-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.animation:animation-android:1.8.0-alpha02' +implementation 'androidx.compose.animation:animation-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.animation.android) # libs.versions.toml [versions] -animation-android = "1.8.0-alpha02" +animation-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -137,9 +137,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.animation:animation-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.animation:animation-android](androidx_compose_animation_animation-android.md.html). (##) Suppressing diff --git a/docs/checks/UnusedMaterial3ScaffoldPaddingParameter.md.html b/docs/checks/UnusedMaterial3ScaffoldPaddingParameter.md.html index 2f1742c6..56a2fb77 100644 --- a/docs/checks/UnusedMaterial3ScaffoldPaddingParameter.md.html +++ b/docs/checks/UnusedMaterial3ScaffoldPaddingParameter.md.html @@ -21,9 +21,9 @@ Feedback : https://issuetracker.google.com/issues/new?component=612128 Min -: Lint 7.0 -Compiled : Lint 8.0 and 8.1 +Compiled +: Lint 8.7+ Artifact : [androidx.compose.material3:material3-android](androidx_compose_material3_material3-android.md.html) @@ -111,17 +111,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.material3:material3-android:1.3.0") +implementation("androidx.compose.material3:material3-android:1.4.0-alpha04") // build.gradle -implementation 'androidx.compose.material3:material3-android:1.3.0' +implementation 'androidx.compose.material3:material3-android:1.4.0-alpha04' // build.gradle.kts with version catalogs: implementation(libs.material3.android) # libs.versions.toml [versions] -material3-android = "1.3.0" +material3-android = "1.4.0-alpha04" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -133,9 +133,13 @@ } ``` -1.3.0 is the version this documentation was generated from; +1.4.0-alpha04 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.material3:material3-lint:1.4.0-alpha04`. + + [Additional details about androidx.compose.material3:material3-android](androidx_compose_material3_material3-android.md.html). (##) Suppressing diff --git a/docs/checks/UnusedMaterialScaffoldPaddingParameter.md.html b/docs/checks/UnusedMaterialScaffoldPaddingParameter.md.html index 13576b2f..cf8250bd 100644 --- a/docs/checks/UnusedMaterialScaffoldPaddingParameter.md.html +++ b/docs/checks/UnusedMaterialScaffoldPaddingParameter.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.material:material-android](androidx_compose_material_material-android.md.html) @@ -111,17 +111,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.material:material-android:1.8.0-alpha02") +implementation("androidx.compose.material:material-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.material:material-android:1.8.0-alpha02' +implementation 'androidx.compose.material:material-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.material.android) # libs.versions.toml [versions] -material-android = "1.8.0-alpha02" +material-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -133,9 +133,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.material:material-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.material:material-android](androidx_compose_material_material-android.md.html). (##) Suppressing diff --git a/docs/checks/UnusedSharedTransitionModifierParameter.md.html b/docs/checks/UnusedSharedTransitionModifierParameter.md.html index 015d43ea..b7977a04 100644 --- a/docs/checks/UnusedSharedTransitionModifierParameter.md.html +++ b/docs/checks/UnusedSharedTransitionModifierParameter.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.animation:animation-android](androidx_compose_animation_animation-android.md.html) @@ -92,17 +92,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.animation:animation-android:1.8.0-alpha02") +implementation("androidx.compose.animation:animation-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.animation:animation-android:1.8.0-alpha02' +implementation 'androidx.compose.animation:animation-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.animation.android) # libs.versions.toml [versions] -animation-android = "1.8.0-alpha02" +animation-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -114,9 +114,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.animation:animation-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.animation:animation-android](androidx_compose_animation_animation-android.md.html). (##) Suppressing diff --git a/docs/checks/UnusedTargetStateInContentKeyLambda.md.html b/docs/checks/UnusedTargetStateInContentKeyLambda.md.html index 22ad6c83..ea63dbd1 100644 --- a/docs/checks/UnusedTargetStateInContentKeyLambda.md.html +++ b/docs/checks/UnusedTargetStateInContentKeyLambda.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.animation:animation-android](androidx_compose_animation_animation-android.md.html) @@ -179,17 +179,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.animation:animation-android:1.8.0-alpha02") +implementation("androidx.compose.animation:animation-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.animation:animation-android:1.8.0-alpha02' +implementation 'androidx.compose.animation:animation-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.animation.android) # libs.versions.toml [versions] -animation-android = "1.8.0-alpha02" +animation-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -201,9 +201,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.animation:animation-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.animation:animation-android](androidx_compose_animation_animation-android.md.html). (##) Suppressing diff --git a/docs/checks/UnusedTransitionTargetStateParameter.md.html b/docs/checks/UnusedTransitionTargetStateParameter.md.html index cc31b129..a91b714a 100644 --- a/docs/checks/UnusedTransitionTargetStateParameter.md.html +++ b/docs/checks/UnusedTransitionTargetStateParameter.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.animation:animation-core-android](androidx_compose_animation_animation-core-android.md.html) @@ -118,17 +118,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.animation:animation-core-android:1.8.0-alpha02") +implementation("androidx.compose.animation:animation-core-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.animation:animation-core-android:1.8.0-alpha02' +implementation 'androidx.compose.animation:animation-core-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.animation.core.android) # libs.versions.toml [versions] -animation-core-android = "1.8.0-alpha02" +animation-core-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -140,9 +140,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.animation:animation-core-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.animation:animation-core-android](androidx_compose_animation_animation-core-android.md.html). (##) Suppressing diff --git a/docs/checks/UseGetLayoutInflater.md.html b/docs/checks/UseGetLayoutInflater.md.html index c7ec928f..1d09dc1c 100644 --- a/docs/checks/UseGetLayoutInflater.md.html +++ b/docs/checks/UseGetLayoutInflater.md.html @@ -38,7 +38,7 @@ Copyright Year : 2021 -Using LayoutInflater.from(Context) can return a LayoutInflater +Using LayoutInflater.from(Context) can return a LayoutInflater that does not have the correct theme. !!! Tip @@ -99,17 +99,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment:1.8.3") +implementation("androidx.fragment:fragment:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment:1.8.3' +implementation 'androidx.fragment:fragment:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment) # libs.versions.toml [versions] -fragment = "1.8.3" +fragment = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -121,7 +121,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.fragment:fragment](androidx_fragment_fragment.md.html). diff --git a/docs/checks/UseOfNonLambdaOffsetOverload.md.html b/docs/checks/UseOfNonLambdaOffsetOverload.md.html index 3f7fe5bb..1fb5e8a4 100644 --- a/docs/checks/UseOfNonLambdaOffsetOverload.md.html +++ b/docs/checks/UseOfNonLambdaOffsetOverload.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.compose.foundation:foundation-android](androidx_compose_foundation_foundation-android.md.html) @@ -50,17 +50,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.foundation:foundation-android:1.8.0-alpha02") +implementation("androidx.compose.foundation:foundation-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.foundation:foundation-android:1.8.0-alpha02' +implementation 'androidx.compose.foundation:foundation-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.foundation.android) # libs.versions.toml [versions] -foundation-android = "1.8.0-alpha02" +foundation-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -72,9 +72,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.foundation:foundation-lint:1.8.0-alpha06`. + + [Additional details about androidx.compose.foundation:foundation-android](androidx_compose_foundation_foundation-android.md.html). (##) Suppressing diff --git a/docs/checks/UseRequireInsteadOfGet.md.html b/docs/checks/UseRequireInsteadOfGet.md.html index 3def3969..f3d22c9f 100644 --- a/docs/checks/UseRequireInsteadOfGet.md.html +++ b/docs/checks/UseRequireInsteadOfGet.md.html @@ -165,17 +165,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment:1.8.3") +implementation("androidx.fragment:fragment:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment:1.8.3' +implementation 'androidx.fragment:fragment:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment) # libs.versions.toml [versions] -fragment = "1.8.3" +fragment = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -187,7 +187,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.fragment:fragment](androidx_fragment_fragment.md.html). diff --git a/docs/checks/UseRxSetProgress2.md.html b/docs/checks/UseRxSetProgress2.md.html index 2b4d2f3b..c1d2a640 100644 --- a/docs/checks/UseRxSetProgress2.md.html +++ b/docs/checks/UseRxSetProgress2.md.html @@ -25,7 +25,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.work:work-runtime](androidx_work_work-runtime.md.html) @@ -89,17 +89,17 @@ ``` // build.gradle.kts -implementation("androidx.work:work-runtime:2.10.0-alpha04") +implementation("androidx.work:work-runtime:2.10.0") // build.gradle -implementation 'androidx.work:work-runtime:2.10.0-alpha04' +implementation 'androidx.work:work-runtime:2.10.0' // build.gradle.kts with version catalogs: implementation(libs.work.runtime) # libs.versions.toml [versions] -work-runtime = "2.10.0-alpha04" +work-runtime = "2.10.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -111,7 +111,7 @@ } ``` -2.10.0-alpha04 is the version this documentation was generated from; +2.10.0 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.work:work-runtime](androidx_work_work-runtime.md.html). diff --git a/docs/checks/UsingMaterialAndMaterial3Libraries.md.html b/docs/checks/UsingMaterialAndMaterial3Libraries.md.html index 25497606..b255827c 100644 --- a/docs/checks/UsingMaterialAndMaterial3Libraries.md.html +++ b/docs/checks/UsingMaterialAndMaterial3Libraries.md.html @@ -21,9 +21,9 @@ Feedback : https://issuetracker.google.com/issues/new?component=612128 Min -: Lint 7.0 -Compiled : Lint 8.0 and 8.1 +Compiled +: Lint 8.7+ Artifact : [androidx.compose.material3:material3-android](androidx_compose_material3_material3-android.md.html) @@ -87,17 +87,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.material3:material3-android:1.3.0") +implementation("androidx.compose.material3:material3-android:1.4.0-alpha04") // build.gradle -implementation 'androidx.compose.material3:material3-android:1.3.0' +implementation 'androidx.compose.material3:material3-android:1.4.0-alpha04' // build.gradle.kts with version catalogs: implementation(libs.material3.android) # libs.versions.toml [versions] -material3-android = "1.3.0" +material3-android = "1.4.0-alpha04" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -109,9 +109,13 @@ } ``` -1.3.0 is the version this documentation was generated from; +1.4.0-alpha04 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.material3:material3-lint:1.4.0-alpha04`. + + [Additional details about androidx.compose.material3:material3-android](androidx_compose_material3_material3-android.md.html). (##) Suppressing diff --git a/docs/checks/ViewModelConstructorInComposable.md.html b/docs/checks/ViewModelConstructorInComposable.md.html index c7ccec23..df55e642 100644 --- a/docs/checks/ViewModelConstructorInComposable.md.html +++ b/docs/checks/ViewModelConstructorInComposable.md.html @@ -23,7 +23,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.lifecycle:lifecycle-viewmodel-compose-android](androidx_lifecycle_lifecycle-viewmodel-compose-android.md.html) @@ -48,17 +48,17 @@ ``` // build.gradle.kts -implementation("androidx.lifecycle:lifecycle-viewmodel-compose-android:2.9.0-alpha03") +implementation("androidx.lifecycle:lifecycle-viewmodel-compose-android:2.9.0-alpha07") // build.gradle -implementation 'androidx.lifecycle:lifecycle-viewmodel-compose-android:2.9.0-alpha03' +implementation 'androidx.lifecycle:lifecycle-viewmodel-compose-android:2.9.0-alpha07' // build.gradle.kts with version catalogs: implementation(libs.lifecycle.viewmodel.compose.android) # libs.versions.toml [versions] -lifecycle-viewmodel-compose-android = "2.9.0-alpha03" +lifecycle-viewmodel-compose-android = "2.9.0-alpha07" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -70,7 +70,7 @@ } ``` -2.9.0-alpha03 is the version this documentation was generated from; +2.9.0-alpha07 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.lifecycle:lifecycle-viewmodel-compose-android](androidx_lifecycle_lifecycle-viewmodel-compose-android.md.html). diff --git a/docs/checks/VulnerableCryptoAlgorithm.md.html b/docs/checks/VulnerableCryptoAlgorithm.md.html index 54c659ec..33c39ebc 100644 --- a/docs/checks/VulnerableCryptoAlgorithm.md.html +++ b/docs/checks/VulnerableCryptoAlgorithm.md.html @@ -92,17 +92,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -114,7 +114,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/WeakPrng.md.html b/docs/checks/WeakPrng.md.html index 58200940..5505273d 100644 --- a/docs/checks/WeakPrng.md.html +++ b/docs/checks/WeakPrng.md.html @@ -93,17 +93,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -115,7 +115,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.android.security.lint:lint](com_android_security_lint_lint.md.html). diff --git a/docs/checks/WorkerHasAPublicModifier.md.html b/docs/checks/WorkerHasAPublicModifier.md.html index 5db05678..b8d29d73 100644 --- a/docs/checks/WorkerHasAPublicModifier.md.html +++ b/docs/checks/WorkerHasAPublicModifier.md.html @@ -25,7 +25,7 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [androidx.work:work-runtime](androidx_work_work-runtime.md.html) @@ -40,7 +40,7 @@ Copyright Year : 2020 -When you define a ListenableWorker which is constructed using the +When you define a ListenableWorker which is constructed using the default WorkerFactory, the ListenableWorker sub-type needs to be public. @@ -82,17 +82,17 @@ ``` // build.gradle.kts -implementation("androidx.work:work-runtime:2.10.0-alpha04") +implementation("androidx.work:work-runtime:2.10.0") // build.gradle -implementation 'androidx.work:work-runtime:2.10.0-alpha04' +implementation 'androidx.work:work-runtime:2.10.0' // build.gradle.kts with version catalogs: implementation(libs.work.runtime) # libs.versions.toml [versions] -work-runtime = "2.10.0-alpha04" +work-runtime = "2.10.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -104,7 +104,7 @@ } ``` -2.10.0-alpha04 is the version this documentation was generated from; +2.10.0 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.work:work-runtime](androidx_work_work-runtime.md.html). diff --git a/docs/checks/WrongNavigateRouteType.md.html b/docs/checks/WrongNavigateRouteType.md.html index 75fc8592..488b38a1 100644 --- a/docs/checks/WrongNavigateRouteType.md.html +++ b/docs/checks/WrongNavigateRouteType.md.html @@ -152,17 +152,17 @@ ``` // build.gradle.kts -implementation("androidx.navigation:navigation-runtime:2.8.1") +implementation("androidx.navigation:navigation-runtime:2.9.0-alpha03") // build.gradle -implementation 'androidx.navigation:navigation-runtime:2.8.1' +implementation 'androidx.navigation:navigation-runtime:2.9.0-alpha03' // build.gradle.kts with version catalogs: implementation(libs.navigation.runtime) # libs.versions.toml [versions] -navigation-runtime = "2.8.1" +navigation-runtime = "2.9.0-alpha03" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -174,7 +174,7 @@ } ``` -2.8.1 is the version this documentation was generated from; +2.9.0-alpha03 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.navigation:navigation-runtime](androidx_navigation_navigation-runtime.md.html). diff --git a/docs/checks/WrongResourceImportAlias.md.html b/docs/checks/WrongResourceImportAlias.md.html index c3f887c4..e0f8ad0e 100644 --- a/docs/checks/WrongResourceImportAlias.md.html +++ b/docs/checks/WrongResourceImportAlias.md.html @@ -23,9 +23,9 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact : [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) @@ -41,7 +41,7 @@ : 2022 R class import aliases should be consistent across the codebase. For -example: +example: import slack.l10n.R as L10nR import slack.uikit.R as UiKitR. @@ -107,17 +107,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -129,7 +129,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. [Additional details about com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html). diff --git a/docs/checks/WrongSdkInt.md.html b/docs/checks/WrongSdkInt.md.html new file mode 100644 index 00000000..ae54474f --- /dev/null +++ b/docs/checks/WrongSdkInt.md.html @@ -0,0 +1,162 @@ + +(#) Mismatched SDK_INT or SDK_INT_FULL + +!!! ERROR: Mismatched SDK_INT or SDK_INT_FULL + This is an error. + +Id +: `WrongSdkInt` +Summary +: Mismatched SDK_INT or SDK_INT_FULL +Severity +: Error +Category +: Correctness +Platform +: Android +Vendor +: Android Open Source Project +Feedback +: https://issuetracker.google.com/issues/new?component=192708 +Affects +: Kotlin and Java files +Editing +: This check runs on the fly in the IDE editor +Implementation +: [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/ApiDetector.kt) +Tests +: [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/ApiDetectorTest.java) +Copyright Year +: 2012 + +The `SDK_INT` constant can be used to check what the current API level +is. The `SDK_INT_FULL` constant also contains this information, but it +also carries additional information about minor versions between major +releases, and cannot be compared directly with the normal API levels. + +You should typically compare `SDK_INT` with the constants in +`Build.VERSION_CODES`, and `SDK_INT_FULL` with the constants in +`Build.VERSION_CODES_FULL`. This lint check flags suspicious +combinations of these comparisons. + +!!! Tip + This lint check has an associated quickfix available in the IDE. + +(##) Example + +Here is an example of lint warnings produced by this check: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~text +src/test/pkg/test.kt:13:Error: The API level +(Build.VERSION_CODES_FULL.VANILLA_ICE_CREAM_0) appears to be a plain SDK +int, so it should be compared with SDK_INT, not SDK_INT, or you should +switch the API level to a full SDK constant [WrongSdkInt] + if (SDK_INT > Build.VERSION_CODES_FULL.VANILLA_ICE_CREAM_0) { // ERROR 1 + ------------------------------------------------------ +src/test/pkg/test.kt:15:Error: The API level +(Build.VERSION_CODES.VANILLA_ICE_CREAM) appears to be a full SDK int +(encoding major and minor versions), so it should be compared with +SDK_INT_FULL, not SDK_INT [WrongSdkInt] + if (SDK_INT_FULL > Build.VERSION_CODES.VANILLA_ICE_CREAM) { // ERROR 2 + ---------------------------------------------------- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Here is the source file referenced above: + +`src/test/pkg/test.kt`: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~kotlin linenumbers +package test.pkg + +import android.os.Build.VERSION.SDK_INT +import android.os.Build.VERSION.SDK_INT_FULL +import android.os.Build.VERSION_CODES_FULL +import android.os.Build + +fun testInvalidComparisons() { + if (SDK_INT_FULL > Build.VERSION_CODES_FULL.VANILLA_ICE_CREAM_0) { // OK 1 + } + if (SDK_INT_FULL > Build.VERSION_CODES_FULL.VANILLA_ICE_CREAM_0) { // OK 2 + } + if (SDK_INT > Build.VERSION_CODES_FULL.VANILLA_ICE_CREAM_0) { // ERROR 1 + } + if (SDK_INT_FULL > Build.VERSION_CODES.VANILLA_ICE_CREAM) { // ERROR 2 + } + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CUR_DEVELOPMENT) { // OK 3 + } +} +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +You can also visit the +[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/ApiDetectorTest.java) +for the unit tests for this check to see additional scenarios. + +The above example was automatically extracted from the first unit test +found for this lint check, `ApiDetector.testInvalidComparisons`. +To report a problem with this extracted sample, visit +https://issuetracker.google.com/issues/new?component=192708. + +(##) Suppressing + +You can suppress false positives using one of the following mechanisms: + +* Using a suppression annotation like this on the enclosing + element: + + ```kt + // Kotlin + @Suppress("WrongSdkInt") + fun method() { + problematicStatement() + } + ``` + + or + + ```java + // Java + @SuppressWarnings("WrongSdkInt") + void method() { + problematicStatement(); + } + ``` + +* Using a suppression comment like this on the line above: + + ```kt + //noinspection WrongSdkInt + problematicStatement() + ``` + +* Using a special `lint.xml` file in the source tree which turns off + the check in that folder and any sub folder. A simple file might look + like this: + ```xml + <?xml version="1.0" encoding="UTF-8"?> + <lint> + <issue id="WrongSdkInt" severity="ignore" /> + </lint> + ``` + Instead of `ignore` you can also change the severity here, for + example from `error` to `warning`. You can find additional + documentation on how to filter issues by path, regular expression and + so on + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html). + +* In Gradle projects, using the DSL syntax to configure lint. For + example, you can use something like + ```gradle + lintOptions { + disable 'WrongSdkInt' + } + ``` + In Android projects this should be nested inside an `android { }` + block. + +* For manual invocations of `lint`, using the `--ignore` flag: + ``` + $ lint --ignore WrongSdkInt ...` + ``` + +* Last, but not least, using baselines, as discussed + [here](https://googlesamples.github.io/android-custom-lint-rules/usage/baselines.md.html). + + \ No newline at end of file diff --git a/docs/checks/WrongStartDestinationType-2.md.html b/docs/checks/WrongStartDestinationType-2.md.html index 14841ecb..47e8b060 100644 --- a/docs/checks/WrongStartDestinationType-2.md.html +++ b/docs/checks/WrongStartDestinationType-2.md.html @@ -141,8 +141,8 @@ id's must be unique, so you cannot combine these libraries. Also defined in: * WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class. (this issue) -* [WrongStartDestinationType from androidx.navigation:navigation-compose:2.8.1](WrongStartDestinationType.md.html) -* [WrongStartDestinationType from androidx.navigation:navigation-common:2.8.1](WrongStartDestinationType-3.md.html) +* [WrongStartDestinationType from androidx.navigation:navigation-compose:2.9.0-alpha03](WrongStartDestinationType.md.html) +* [WrongStartDestinationType from androidx.navigation:navigation-common:2.9.0-alpha03](WrongStartDestinationType-3.md.html) (##) Including @@ -153,17 +153,17 @@ ``` // build.gradle.kts -implementation("androidx.navigation:navigation-runtime:2.8.1") +implementation("androidx.navigation:navigation-runtime:2.9.0-alpha03") // build.gradle -implementation 'androidx.navigation:navigation-runtime:2.8.1' +implementation 'androidx.navigation:navigation-runtime:2.9.0-alpha03' // build.gradle.kts with version catalogs: implementation(libs.navigation.runtime) # libs.versions.toml [versions] -navigation-runtime = "2.8.1" +navigation-runtime = "2.9.0-alpha03" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -175,7 +175,7 @@ } ``` -2.8.1 is the version this documentation was generated from; +2.9.0-alpha03 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.navigation:navigation-runtime](androidx_navigation_navigation-runtime.md.html). diff --git a/docs/checks/WrongStartDestinationType-3.md.html b/docs/checks/WrongStartDestinationType-3.md.html index f0ca0b64..953476db 100644 --- a/docs/checks/WrongStartDestinationType-3.md.html +++ b/docs/checks/WrongStartDestinationType-3.md.html @@ -141,8 +141,8 @@ id's must be unique, so you cannot combine these libraries. Also defined in: * WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class. (this issue) -* [WrongStartDestinationType from androidx.navigation:navigation-compose:2.8.1](WrongStartDestinationType.md.html) -* [WrongStartDestinationType from androidx.navigation:navigation-runtime:2.8.1](WrongStartDestinationType-2.md.html) +* [WrongStartDestinationType from androidx.navigation:navigation-compose:2.9.0-alpha03](WrongStartDestinationType.md.html) +* [WrongStartDestinationType from androidx.navigation:navigation-runtime:2.9.0-alpha03](WrongStartDestinationType-2.md.html) (##) Including @@ -153,17 +153,17 @@ ``` // build.gradle.kts -implementation("androidx.navigation:navigation-common:2.8.1") +implementation("androidx.navigation:navigation-common:2.9.0-alpha03") // build.gradle -implementation 'androidx.navigation:navigation-common:2.8.1' +implementation 'androidx.navigation:navigation-common:2.9.0-alpha03' // build.gradle.kts with version catalogs: implementation(libs.navigation.common) # libs.versions.toml [versions] -navigation-common = "2.8.1" +navigation-common = "2.9.0-alpha03" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -175,7 +175,7 @@ } ``` -2.8.1 is the version this documentation was generated from; +2.9.0-alpha03 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.navigation:navigation-common](androidx_navigation_navigation-common.md.html). diff --git a/docs/checks/WrongStartDestinationType.md.html b/docs/checks/WrongStartDestinationType.md.html index 59d1fb13..bb50a9d8 100644 --- a/docs/checks/WrongStartDestinationType.md.html +++ b/docs/checks/WrongStartDestinationType.md.html @@ -139,8 +139,8 @@ id's must be unique, so you cannot combine these libraries. Also defined in: * WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class. (this issue) -* [WrongStartDestinationType from androidx.navigation:navigation-runtime:2.8.1](WrongStartDestinationType-2.md.html) -* [WrongStartDestinationType from androidx.navigation:navigation-common:2.8.1](WrongStartDestinationType-3.md.html) +* [WrongStartDestinationType from androidx.navigation:navigation-runtime:2.9.0-alpha03](WrongStartDestinationType-2.md.html) +* [WrongStartDestinationType from androidx.navigation:navigation-common:2.9.0-alpha03](WrongStartDestinationType-3.md.html) (##) Including @@ -151,17 +151,17 @@ ``` // build.gradle.kts -implementation("androidx.navigation:navigation-compose:2.8.1") +implementation("androidx.navigation:navigation-compose:2.9.0-alpha03") // build.gradle -implementation 'androidx.navigation:navigation-compose:2.8.1' +implementation 'androidx.navigation:navigation-compose:2.9.0-alpha03' // build.gradle.kts with version catalogs: implementation(libs.navigation.compose) # libs.versions.toml [versions] -navigation-compose = "2.8.1" +navigation-compose = "2.9.0-alpha03" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -173,7 +173,7 @@ } ``` -2.8.1 is the version this documentation was generated from; +2.9.0-alpha03 is the version this documentation was generated from; there may be newer versions available. [Additional details about androidx.navigation:navigation-compose](androidx_navigation_navigation-compose.md.html). diff --git a/docs/checks/androidx_activity_activity-compose.md.html b/docs/checks/androidx_activity_activity-compose.md.html index f515106e..eea72b76 100644 --- a/docs/checks/androidx_activity_activity-compose.md.html +++ b/docs/checks/androidx_activity_activity-compose.md.html @@ -17,7 +17,7 @@ Compiled : Lint 8.0 and 8.1 Artifact -: androidx.activity:activity-compose:1.10.0-alpha02 +: androidx.activity:activity-compose:1.10.0-beta01 (##) Included Issues @@ -25,6 +25,7 @@ |----------------------------------------------------------|---------------------------------------------------------------------------------| |[LaunchDuringComposition](LaunchDuringComposition.md.html)|Calls to `launch` should happen inside of a SideEffect and not during composition| |[NoCollectCallFound](NoCollectCallFound.md.html) |You must call collect on the given progress flow when using PredictiveBackHandler| +|[ContextCastToActivity](ContextCastToActivity.md.html) |LocalContext should not be cast to Activity, use LocalActivity instead | (##) Including @@ -34,17 +35,17 @@ ``` // build.gradle.kts -implementation("androidx.activity:activity-compose:1.10.0-alpha02") +implementation("androidx.activity:activity-compose:1.10.0-beta01") // build.gradle -implementation 'androidx.activity:activity-compose:1.10.0-alpha02' +implementation 'androidx.activity:activity-compose:1.10.0-beta01' // build.gradle.kts with version catalogs: implementation(libs.activity.compose) # libs.versions.toml [versions] -activity-compose = "1.10.0-alpha02" +activity-compose = "1.10.0-beta01" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -56,13 +57,14 @@ } ``` -1.10.0-alpha02 is the version this documentation was generated from; +1.10.0-beta01 is the version this documentation was generated from; there may be newer versions available. (##) Changes * 1.4.0: First version includes LaunchDuringComposition. * 1.8.0: Adds NoCollectCallFound. +* 1.10.0-alpha03: Adds ContextCastToActivity. (##) Version Compatibility @@ -70,8 +72,11 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.10.0-beta01|2024/11/13| 3| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.10.0-alpha03|2024/10/30| 3| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.10.0-alpha02|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.10.0-alpha01|2024/06/26| 2| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.9.3|2024/10/16| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.9.2|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.9.1|2024/07/24| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.9.0|2024/04/17| 2| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_activity_activity.md.html b/docs/checks/androidx_activity_activity.md.html index ed0dac6d..22916062 100644 --- a/docs/checks/androidx_activity_activity.md.html +++ b/docs/checks/androidx_activity_activity.md.html @@ -18,7 +18,7 @@ Compiled : Lint 8.0 and 8.1 Artifact -: androidx.activity:activity:1.10.0-alpha02 +: androidx.activity:activity:1.10.0-beta01 (##) Included Issues @@ -35,17 +35,17 @@ ``` // build.gradle.kts -implementation("androidx.activity:activity:1.10.0-alpha02") +implementation("androidx.activity:activity:1.10.0-beta01") // build.gradle -implementation 'androidx.activity:activity:1.10.0-alpha02' +implementation 'androidx.activity:activity:1.10.0-beta01' // build.gradle.kts with version catalogs: implementation(libs.activity) # libs.versions.toml [versions] -activity = "1.10.0-alpha02" +activity = "1.10.0-beta01" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -57,7 +57,7 @@ } ``` -1.10.0-alpha02 is the version this documentation was generated from; +1.10.0-beta01 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -72,8 +72,11 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.10.0-beta01|2024/11/13| 2| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.10.0-alpha03|2024/10/30| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.10.0-alpha02|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.10.0-alpha01|2024/06/26| 2| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.9.3|2024/10/16| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.9.2|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.9.1|2024/07/24| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.9.0|2024/04/17| 2| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_compose_animation_animation-android.md.html b/docs/checks/androidx_compose_animation_animation-android.md.html index 64faacc2..64036727 100644 --- a/docs/checks/androidx_compose_animation_animation-android.md.html +++ b/docs/checks/androidx_compose_animation_animation-android.md.html @@ -15,9 +15,9 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.compose.animation:animation-android:1.8.0-alpha02 +: androidx.compose.animation:animation-android:1.8.0-alpha06 (##) Included Issues @@ -37,17 +37,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.animation:animation-android:1.8.0-alpha02") +implementation("androidx.compose.animation:animation-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.animation:animation-android:1.8.0-alpha02' +implementation 'androidx.compose.animation:animation-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.animation.android) # libs.versions.toml [versions] -animation-android = "1.8.0-alpha02" +animation-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -59,9 +59,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.animation:animation-lint:1.8.0-alpha06`. + + (##) Changes * 1.5.0: First version includes UnusedContentLambdaTargetStateParameter, @@ -76,8 +80,15 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.0-alpha06|2024/11/13| 5| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha05|2024/10/30| 5| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha04|2024/10/16| 5| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha03|2024/10/02| 5| Yes| 8.7+|8.0 and 8.1| | 1.8.0-alpha02|2024/09/18| 5| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha01|2024/09/04| 5| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.5|2024/10/30| 2| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.4|2024/10/16| 2| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.3|2024/10/02| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.2|2024/09/18| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.1|2024/09/10| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.0|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_compose_animation_animation-core-android.md.html b/docs/checks/androidx_compose_animation_animation-core-android.md.html index 8ebfecd6..239be894 100644 --- a/docs/checks/androidx_compose_animation_animation-core-android.md.html +++ b/docs/checks/androidx_compose_animation_animation-core-android.md.html @@ -16,9 +16,9 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.compose.animation:animation-core-android:1.8.0-alpha02 +: androidx.compose.animation:animation-core-android:1.8.0-alpha06 (##) Included Issues @@ -36,17 +36,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.animation:animation-core-android:1.8.0-alpha02") +implementation("androidx.compose.animation:animation-core-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.animation:animation-core-android:1.8.0-alpha02' +implementation 'androidx.compose.animation:animation-core-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.animation.core.android) # libs.versions.toml [versions] -animation-core-android = "1.8.0-alpha02" +animation-core-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -58,9 +58,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.animation:animation-core-lint:1.8.0-alpha06`. + + (##) Changes * 1.5.0: First version includes UnrememberedAnimatable, @@ -73,8 +77,15 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.0-alpha06|2024/11/13| 3| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha05|2024/10/30| 3| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha04|2024/10/16| 3| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha03|2024/10/02| 3| Yes| 8.7+|8.0 and 8.1| | 1.8.0-alpha02|2024/09/18| 3| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha01|2024/09/04| 3| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.5|2024/10/30| 3| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.4|2024/10/16| 3| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.3|2024/10/02| 3| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.2|2024/09/18| 3| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.1|2024/09/10| 3| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.0|2024/09/04| 3| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_compose_foundation_foundation-android.md.html b/docs/checks/androidx_compose_foundation_foundation-android.md.html index 47102f83..a2598273 100644 --- a/docs/checks/androidx_compose_foundation_foundation-android.md.html +++ b/docs/checks/androidx_compose_foundation_foundation-android.md.html @@ -17,9 +17,9 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.compose.foundation:foundation-android:1.8.0-alpha02 +: androidx.compose.foundation:foundation-android:1.8.0-alpha06 (##) Included Issues @@ -38,17 +38,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.foundation:foundation-android:1.8.0-alpha02") +implementation("androidx.compose.foundation:foundation-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.foundation:foundation-android:1.8.0-alpha02' +implementation 'androidx.compose.foundation:foundation-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.foundation.android) # libs.versions.toml [versions] -foundation-android = "1.8.0-alpha02" +foundation-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -60,9 +60,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.foundation:foundation-lint:1.8.0-alpha06`. + + (##) Changes * 1.5.0: First version includes FrequentlyChangedStateReadInComposition, @@ -76,8 +80,15 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.0-alpha06|2024/11/13| 4| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha05|2024/10/30| 4| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha04|2024/10/16| 4| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha03|2024/10/02| 4| Yes| 8.7+|8.0 and 8.1| | 1.8.0-alpha02|2024/09/18| 4| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha01|2024/09/04| 4| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.5|2024/10/30| 4| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.4|2024/10/16| 4| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.3|2024/10/02| 4| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.2|2024/09/18| 4| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.1|2024/09/10| 4| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.0|2024/09/04| 4| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_compose_material3_material3-android.md.html b/docs/checks/androidx_compose_material3_material3-android.md.html index e42e8bc1..474d586a 100644 --- a/docs/checks/androidx_compose_material3_material3-android.md.html +++ b/docs/checks/androidx_compose_material3_material3-android.md.html @@ -13,11 +13,11 @@ Feedback : https://issuetracker.google.com/issues/new?component=612128 Min -: Lint 7.0 -Compiled : Lint 8.0 and 8.1 +Compiled +: Lint 8.7+ Artifact -: androidx.compose.material3:material3-android:1.3.0 +: androidx.compose.material3:material3-android:1.4.0-alpha04 (##) Included Issues @@ -34,17 +34,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.material3:material3-android:1.3.0") +implementation("androidx.compose.material3:material3-android:1.4.0-alpha04") // build.gradle -implementation 'androidx.compose.material3:material3-android:1.3.0' +implementation 'androidx.compose.material3:material3-android:1.4.0-alpha04' // build.gradle.kts with version catalogs: implementation(libs.material3.android) # libs.versions.toml [versions] -material3-android = "1.3.0" +material3-android = "1.4.0-alpha04" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -56,9 +56,13 @@ } ``` -1.3.0 is the version this documentation was generated from; +1.4.0-alpha04 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.material3:material3-lint:1.4.0-alpha04`. + + (##) Changes * 1.2.0: First version includes UnusedMaterial3ScaffoldPaddingParameter, @@ -70,6 +74,11 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.4.0-alpha04|2024/11/13| 2| Yes| 8.7+|8.0 and 8.1| +| 1.4.0-alpha03|2024/10/30| 2| Yes| 8.7+|8.0 and 8.1| +| 1.4.0-alpha02|2024/10/16| 2| Yes| 8.7+|8.0 and 8.1| +| 1.4.0-alpha01|2024/10/02| 2| Yes| 8.7+|8.0 and 8.1| +| 1.3.1|2024/10/30| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.3.0|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.2.1|2024/03/06| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.2.0|2024/02/07| 2| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_compose_material_material-android.md.html b/docs/checks/androidx_compose_material_material-android.md.html index 798db615..540af325 100644 --- a/docs/checks/androidx_compose_material_material-android.md.html +++ b/docs/checks/androidx_compose_material_material-android.md.html @@ -15,9 +15,9 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.compose.material:material-android:1.8.0-alpha02 +: androidx.compose.material:material-android:1.8.0-alpha06 (##) Included Issues @@ -34,17 +34,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.material:material-android:1.8.0-alpha02") +implementation("androidx.compose.material:material-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.material:material-android:1.8.0-alpha02' +implementation 'androidx.compose.material:material-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.material.android) # libs.versions.toml [versions] -material-android = "1.8.0-alpha02" +material-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -56,9 +56,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.material:material-lint:1.8.0-alpha06`. + + (##) Changes * 1.5.0: First version includes ConflictingOnColor, @@ -70,8 +74,15 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.0-alpha06|2024/11/13| 2| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha05|2024/10/30| 2| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha04|2024/10/16| 2| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha03|2024/10/02| 2| Yes| 8.7+|8.0 and 8.1| | 1.8.0-alpha02|2024/09/18| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha01|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.5|2024/10/30| 2| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.4|2024/10/16| 2| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.3|2024/10/02| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.2|2024/09/18| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.1|2024/09/10| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.0|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_compose_runtime_runtime-android.md.html b/docs/checks/androidx_compose_runtime_runtime-android.md.html index 7373c2fc..a90cdc01 100644 --- a/docs/checks/androidx_compose_runtime_runtime-android.md.html +++ b/docs/checks/androidx_compose_runtime_runtime-android.md.html @@ -18,7 +18,7 @@ Compiled : Lint 8.0 and 8.1 Artifact -: androidx.compose.runtime:runtime-android:1.8.0-alpha02 +: androidx.compose.runtime:runtime-android:1.8.0-alpha06 (##) Included Issues @@ -47,17 +47,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] -runtime-android = "1.8.0-alpha02" +runtime-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -69,9 +69,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha06`. + + (##) Changes * 1.5.0: First version includes AutoboxingStateCreation, @@ -88,8 +92,15 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.0-alpha06|2024/11/13| 14| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.8.0-alpha05|2024/10/30| 14| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.8.0-alpha04|2024/10/16| 14| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.8.0-alpha03|2024/10/02| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha02|2024/09/18| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha01|2024/09/04| 14| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.5|2024/10/30| 14| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.4|2024/10/16| 14| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.3|2024/10/02| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.2|2024/09/18| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.1|2024/09/10| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.0|2024/09/04| 14| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_compose_runtime_runtime-saveable-android.md.html b/docs/checks/androidx_compose_runtime_runtime-saveable-android.md.html index 8f7b97e6..65aa5edd 100644 --- a/docs/checks/androidx_compose_runtime_runtime-saveable-android.md.html +++ b/docs/checks/androidx_compose_runtime_runtime-saveable-android.md.html @@ -15,9 +15,9 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.compose.runtime:runtime-saveable-android:1.8.0-alpha02 +: androidx.compose.runtime:runtime-saveable-android:1.8.0-alpha06 (##) Included Issues @@ -33,17 +33,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.runtime:runtime-saveable-android:1.8.0-alpha02") +implementation("androidx.compose.runtime:runtime-saveable-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.runtime:runtime-saveable-android:1.8.0-alpha02' +implementation 'androidx.compose.runtime:runtime-saveable-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.runtime.saveable.android) # libs.versions.toml [versions] -runtime-saveable-android = "1.8.0-alpha02" +runtime-saveable-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -55,9 +55,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.runtime:runtime-saveable-lint:1.8.0-alpha06`. + + (##) Changes * 1.5.0: First version includes RememberSaveableSaverParameter. @@ -68,8 +72,15 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.0-alpha06|2024/11/13| 1| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha05|2024/10/30| 1| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha04|2024/10/16| 1| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha03|2024/10/02| 1| Yes| 8.7+|8.0 and 8.1| | 1.8.0-alpha02|2024/09/18| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha01|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.5|2024/10/30| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.4|2024/10/16| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.3|2024/10/02| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.2|2024/09/18| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.1|2024/09/10| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.0|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_compose_ui_ui-android.md.html b/docs/checks/androidx_compose_ui_ui-android.md.html index b8ecf112..1421c89b 100644 --- a/docs/checks/androidx_compose_ui_ui-android.md.html +++ b/docs/checks/androidx_compose_ui_ui-android.md.html @@ -18,7 +18,7 @@ Compiled : Lint 8.0 and 8.1 Artifact -: androidx.compose.ui:ui-android:1.8.0-alpha02 +: androidx.compose.ui:ui-android:1.8.0-alpha06 (##) Included Issues @@ -43,17 +43,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.android) # libs.versions.toml [versions] -ui-android = "1.8.0-alpha02" +ui-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -65,9 +65,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-lint:1.8.0-alpha06`. + + (##) Changes * 1.5.0: First version includes ComposableModifierFactory, @@ -86,8 +90,15 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.0-alpha06|2024/11/13| 10| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.8.0-alpha05|2024/10/30| 10| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.8.0-alpha04|2024/10/16| 10| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.8.0-alpha03|2024/10/02| 10| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha02|2024/09/18| 10| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha01|2024/09/04| 10| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.5|2024/10/30| 10| No[^1]| 8.0 and 8.1|8.0 and 8.1| +| 1.7.4|2024/10/16| 10| No[^1]| 8.0 and 8.1|8.0 and 8.1| +| 1.7.3|2024/10/02| 10| No[^1]| 8.0 and 8.1|8.0 and 8.1| | 1.7.2|2024/09/18| 10| No[^1]| 8.0 and 8.1|8.0 and 8.1| | 1.7.1|2024/09/10| 10| No[^1]| 8.0 and 8.1|8.0 and 8.1| | 1.7.0|2024/09/04| 10| No[^1]| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_compose_ui_ui-graphics-android.md.html b/docs/checks/androidx_compose_ui_ui-graphics-android.md.html index ca7359ab..62d435f1 100644 --- a/docs/checks/androidx_compose_ui_ui-graphics-android.md.html +++ b/docs/checks/androidx_compose_ui_ui-graphics-android.md.html @@ -15,9 +15,9 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.compose.ui:ui-graphics-android:1.8.0-alpha02 +: androidx.compose.ui:ui-graphics-android:1.8.0-alpha06 (##) Included Issues @@ -34,17 +34,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-graphics-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-graphics-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-graphics-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-graphics-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.graphics.android) # libs.versions.toml [versions] -ui-graphics-android = "1.8.0-alpha02" +ui-graphics-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -56,9 +56,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-graphics-lint:1.8.0-alpha06`. + + (##) Changes * 1.5.0: First version includes InvalidColorHexValue, @@ -70,8 +74,15 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.0-alpha06|2024/11/13| 2| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha05|2024/10/30| 2| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha04|2024/10/16| 2| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha03|2024/10/02| 2| Yes| 8.7+|8.0 and 8.1| | 1.8.0-alpha02|2024/09/18| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha01|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.5|2024/10/30| 2| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.4|2024/10/16| 2| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.3|2024/10/02| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.2|2024/09/18| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.1|2024/09/10| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.0|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_compose_ui_ui-test-manifest.md.html b/docs/checks/androidx_compose_ui_ui-test-manifest.md.html index fda34736..696bc444 100644 --- a/docs/checks/androidx_compose_ui_ui-test-manifest.md.html +++ b/docs/checks/androidx_compose_ui_ui-test-manifest.md.html @@ -17,9 +17,9 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.compose.ui:ui-test-manifest:1.8.0-alpha02 +: androidx.compose.ui:ui-test-manifest:1.8.0-alpha06 (##) Included Issues @@ -35,17 +35,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-test-manifest:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-test-manifest:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-test-manifest:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-test-manifest:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.test.manifest) # libs.versions.toml [versions] -ui-test-manifest = "1.8.0-alpha02" +ui-test-manifest = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -57,9 +57,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-test-manifest-lint:1.8.0-alpha06`. + + (##) Changes * 1.2.0: First version includes TestManifestGradleConfiguration. @@ -70,8 +74,15 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.0-alpha06|2024/11/13| 1| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha05|2024/10/30| 1| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha04|2024/10/16| 1| Yes| 8.7+|8.0 and 8.1| +| 1.8.0-alpha03|2024/10/02| 1| Yes| 8.7+|8.0 and 8.1| | 1.8.0-alpha02|2024/09/18| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha01|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.5|2024/10/30| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.4|2024/10/16| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.3|2024/10/02| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.2|2024/09/18| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.1|2024/09/10| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.0|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_compose_ui_ui-text-android.md.html b/docs/checks/androidx_compose_ui_ui-text-android.md.html index 1b87260c..9c0894b3 100644 --- a/docs/checks/androidx_compose_ui_ui-text-android.md.html +++ b/docs/checks/androidx_compose_ui_ui-text-android.md.html @@ -13,11 +13,11 @@ Feedback : https://issuetracker.google.com/issues/new?component=779818 Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.compose.ui:ui-text-android:1.8.0-alpha02 +: androidx.compose.ui:ui-text-android:1.8.0-alpha06 (##) Included Issues @@ -33,17 +33,17 @@ ``` // build.gradle.kts -implementation("androidx.compose.ui:ui-text-android:1.8.0-alpha02") +implementation("androidx.compose.ui:ui-text-android:1.8.0-alpha06") // build.gradle -implementation 'androidx.compose.ui:ui-text-android:1.8.0-alpha02' +implementation 'androidx.compose.ui:ui-text-android:1.8.0-alpha06' // build.gradle.kts with version catalogs: implementation(libs.ui.text.android) # libs.versions.toml [versions] -ui-text-android = "1.8.0-alpha02" +ui-text-android = "1.8.0-alpha06" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -55,9 +55,13 @@ } ``` -1.8.0-alpha02 is the version this documentation was generated from; +1.8.0-alpha06 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +You can also use `androidx.compose.ui:ui-text-lint:1.8.0-alpha06`. + + (##) Changes * 1.7.0: First version includes InvalidLanguageTagDelimiter. @@ -68,8 +72,15 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.0-alpha06|2024/11/13| 1| Yes| 8.7+| 8.7+| +| 1.8.0-alpha05|2024/10/30| 1| Yes| 8.7+| 8.7+| +| 1.8.0-alpha04|2024/10/16| 1| Yes| 8.7+| 8.7+| +| 1.8.0-alpha03|2024/10/02| 1| Yes| 8.7+| 8.7+| | 1.8.0-alpha02|2024/09/18| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha01|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.5|2024/10/30| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.4|2024/10/16| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.7.3|2024/10/02| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.2|2024/09/18| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.1|2024/09/10| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.0|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_constraintlayout_constraintlayout-compose.md.html b/docs/checks/androidx_constraintlayout_constraintlayout-compose.md.html index d4a40b16..4ce81fa5 100644 --- a/docs/checks/androidx_constraintlayout_constraintlayout-compose.md.html +++ b/docs/checks/androidx_constraintlayout_constraintlayout-compose.md.html @@ -14,11 +14,11 @@ Feedback : https://issuetracker.google.com/issues/new?component=323867&template=1023345 Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.constraintlayout:constraintlayout-compose:1.1.0-beta01 +: androidx.constraintlayout:constraintlayout-compose:1.1.0 (##) Included Issues @@ -36,17 +36,17 @@ ``` // build.gradle.kts -implementation("androidx.constraintlayout:constraintlayout-compose:1.1.0-beta01") +implementation("androidx.constraintlayout:constraintlayout-compose:1.1.0") // build.gradle -implementation 'androidx.constraintlayout:constraintlayout-compose:1.1.0-beta01' +implementation 'androidx.constraintlayout:constraintlayout-compose:1.1.0' // build.gradle.kts with version catalogs: implementation(libs.constraintlayout.compose) # libs.versions.toml [versions] -constraintlayout-compose = "1.1.0-beta01" +constraintlayout-compose = "1.1.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -58,34 +58,8 @@ } ``` -1.1.0-beta01 is the version this documentation was generated from; +1.1.0 is the version this documentation was generated from; there may be newer versions available. -(##) Changes - -* 1.1.0-alpha06: First version includes IncorrectReferencesDeclaration. -* 1.1.0-alpha08: Adds IncorrectChainMarginsUsage, - IncorrectMatchParentUsage. - -(##) Version Compatibility - -There are multiple older versions available of this library: - -| Version | Date | Issues | Compatible | Compiled | Requires | -|-------------------:|----------|-------:|------------|--------------:|---------:| -| 1.1.0-beta01|2024/09/04| 3| Yes| 8.0 and 8.1|8.0 and 8.1| -| 1.1.0-alpha14|2024/08/07| 3| Yes| 8.0 and 8.1|8.0 and 8.1| -| 1.1.0-alpha13|2023/10/04| 3| Yes| 8.0 and 8.1|8.0 and 8.1| -| 1.1.0-alpha12|2023/08/09| 3| Yes| 8.0 and 8.1|8.0 and 8.1| -| 1.1.0-alpha11|2023/07/26| 3| Yes| 8.0 and 8.1|8.0 and 8.1| -| 1.1.0-alpha10|2023/05/24| 3| Yes| 8.0 and 8.1|8.0 and 8.1| -| 1.1.0-alpha09|2023/03/22| 3| No[^1]| 8.0 and 8.1| 7.0| -| 1.1.0-alpha08|2023/03/08| 3| No[^1]| 8.0 and 8.1| 7.0| -| 1.1.0-alpha07|2023/02/08| 1| Yes| 7.3 and 7.4| 7.0| -| 1.1.0-alpha06|2023/01/25| 1| Yes| 7.3 and 7.4| 7.0| - -Compatibility Problems: - -[^1]: org.jetbrains.uast.visitor.UastVisitor.DefaultImpls#afterVisitAnnotation(org.jetbrains.uast.visitor.UastVisitor,org.jetbrains.uast.UAnnotation): void is not available \ No newline at end of file diff --git a/docs/checks/androidx_fragment_fragment-testing-manifest.md.html b/docs/checks/androidx_fragment_fragment-testing-manifest.md.html index 70b41a74..59d75744 100644 --- a/docs/checks/androidx_fragment_fragment-testing-manifest.md.html +++ b/docs/checks/androidx_fragment_fragment-testing-manifest.md.html @@ -19,7 +19,7 @@ Compiled : Lint 8.0 and 8.1 Artifact -: androidx.fragment:fragment-testing-manifest:1.8.3 +: androidx.fragment:fragment-testing-manifest:1.8.5 (##) Included Issues @@ -35,17 +35,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment-testing-manifest:1.8.3") +implementation("androidx.fragment:fragment-testing-manifest:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment-testing-manifest:1.8.3' +implementation 'androidx.fragment:fragment-testing-manifest:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment.testing.manifest) # libs.versions.toml [versions] -fragment-testing-manifest = "1.8.3" +fragment-testing-manifest = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -57,7 +57,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -70,6 +70,8 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.5|2024/10/30| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.8.4|2024/10/02| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.3|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.2|2024/07/24| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.1|2024/06/26| 1| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_fragment_fragment-testing.md.html b/docs/checks/androidx_fragment_fragment-testing.md.html index f7da326b..3798fe59 100644 --- a/docs/checks/androidx_fragment_fragment-testing.md.html +++ b/docs/checks/androidx_fragment_fragment-testing.md.html @@ -17,7 +17,7 @@ Compiled : Lint 8.0 and 8.1 Artifact -: androidx.fragment:fragment-testing:1.8.3 +: androidx.fragment:fragment-testing:1.8.5 (##) Included Issues @@ -33,17 +33,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment-testing:1.8.3") +implementation("androidx.fragment:fragment-testing:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment-testing:1.8.3' +implementation 'androidx.fragment:fragment-testing:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment.testing) # libs.versions.toml [versions] -fragment-testing = "1.8.3" +fragment-testing = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -55,7 +55,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -68,6 +68,8 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.5|2024/10/30| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.8.4|2024/10/02| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.3|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.2|2024/07/24| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.1|2024/06/26| 1| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_fragment_fragment.md.html b/docs/checks/androidx_fragment_fragment.md.html index 87ca3903..6d5ee85f 100644 --- a/docs/checks/androidx_fragment_fragment.md.html +++ b/docs/checks/androidx_fragment_fragment.md.html @@ -20,7 +20,7 @@ Compiled : Lint 8.0 and 8.1 Artifact -: androidx.fragment:fragment:1.8.3 +: androidx.fragment:fragment:1.8.5 (##) Included Issues @@ -44,17 +44,17 @@ ``` // build.gradle.kts -implementation("androidx.fragment:fragment:1.8.3") +implementation("androidx.fragment:fragment:1.8.5") // build.gradle -implementation 'androidx.fragment:fragment:1.8.3' +implementation 'androidx.fragment:fragment:1.8.5' // build.gradle.kts with version catalogs: implementation(libs.fragment) # libs.versions.toml [versions] -fragment = "1.8.3" +fragment = "1.8.5" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -66,7 +66,7 @@ } ``` -1.8.3 is the version this documentation was generated from; +1.8.5 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -84,6 +84,8 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.8.5|2024/10/30| 9| Yes| 8.0 and 8.1|8.0 and 8.1| +| 1.8.4|2024/10/02| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.3|2024/09/04| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.2|2024/07/24| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.1|2024/06/26| 9| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_lifecycle_lifecycle-livedata-core.md.html b/docs/checks/androidx_lifecycle_lifecycle-livedata-core.md.html index f7851c86..0bc818dd 100644 --- a/docs/checks/androidx_lifecycle_lifecycle-livedata-core.md.html +++ b/docs/checks/androidx_lifecycle_lifecycle-livedata-core.md.html @@ -17,7 +17,7 @@ Compiled : Lint 8.0 and 8.1 Artifact -: androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha03 +: androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha07 (##) Included Issues @@ -33,17 +33,17 @@ ``` // build.gradle.kts -implementation("androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha03") +implementation("androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha07") // build.gradle -implementation 'androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha03' +implementation 'androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha07' // build.gradle.kts with version catalogs: implementation(libs.lifecycle.livedata.core) # libs.versions.toml [versions] -lifecycle-livedata-core = "2.9.0-alpha03" +lifecycle-livedata-core = "2.9.0-alpha07" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -55,7 +55,7 @@ } ``` -2.9.0-alpha03 is the version this documentation was generated from; +2.9.0-alpha07 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -68,9 +68,14 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 2.9.0-alpha07|2024/11/13| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.9.0-alpha06|2024/10/30| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.9.0-alpha05|2024/10/16| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.9.0-alpha04|2024/10/02| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.9.0-alpha03|2024/09/18| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.9.0-alpha02|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.9.0-alpha01|2024/08/07| 1| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.8.7|2024/10/30| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.8.6|2024/09/18| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.8.5|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.8.4|2024/07/24| 1| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_lifecycle_lifecycle-runtime-android.md.html b/docs/checks/androidx_lifecycle_lifecycle-runtime-android.md.html index 46c340a9..31c17dd4 100644 --- a/docs/checks/androidx_lifecycle_lifecycle-runtime-android.md.html +++ b/docs/checks/androidx_lifecycle_lifecycle-runtime-android.md.html @@ -15,9 +15,9 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03 +: androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07 (##) Included Issues @@ -34,17 +34,17 @@ ``` // build.gradle.kts -implementation("androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03") +implementation("androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07") // build.gradle -implementation 'androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03' +implementation 'androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07' // build.gradle.kts with version catalogs: implementation(libs.lifecycle.runtime.android) # libs.versions.toml [versions] -lifecycle-runtime-android = "2.9.0-alpha03" +lifecycle-runtime-android = "2.9.0-alpha07" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -56,7 +56,7 @@ } ``` -2.9.0-alpha03 is the version this documentation was generated from; +2.9.0-alpha07 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -70,9 +70,14 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 2.9.0-alpha07|2024/11/13| 2| Yes| 8.7+|8.0 and 8.1| +| 2.9.0-alpha06|2024/10/30| 2| Yes| 8.7+|8.0 and 8.1| +| 2.9.0-alpha05|2024/10/16| 2| Yes| 8.7+|8.0 and 8.1| +| 2.9.0-alpha04|2024/10/02| 2| Yes| 8.7+|8.0 and 8.1| | 2.9.0-alpha03|2024/09/18| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.9.0-alpha02|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.9.0-alpha01|2024/08/07| 2| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.8.7|2024/10/30| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.8.6|2024/09/18| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.8.5|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.8.4|2024/07/24| 2| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_lifecycle_lifecycle-runtime-testing.md.html b/docs/checks/androidx_lifecycle_lifecycle-runtime-testing.md.html index 75691c42..018548af 100644 --- a/docs/checks/androidx_lifecycle_lifecycle-runtime-testing.md.html +++ b/docs/checks/androidx_lifecycle_lifecycle-runtime-testing.md.html @@ -15,9 +15,9 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha03 +: androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha07 (##) Included Issues @@ -33,17 +33,17 @@ ``` // build.gradle.kts -implementation("androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha03") +implementation("androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha07") // build.gradle -implementation 'androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha03' +implementation 'androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha07' // build.gradle.kts with version catalogs: implementation(libs.lifecycle.runtime.testing) # libs.versions.toml [versions] -lifecycle-runtime-testing = "2.9.0-alpha03" +lifecycle-runtime-testing = "2.9.0-alpha07" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -55,7 +55,7 @@ } ``` -2.9.0-alpha03 is the version this documentation was generated from; +2.9.0-alpha07 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -68,6 +68,10 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 2.9.0-alpha07|2024/11/13| 1| Yes| 8.7+|8.0 and 8.1| +| 2.9.0-alpha06|2024/10/30| 1| Yes| 8.7+|8.0 and 8.1| +| 2.9.0-alpha05|2024/10/16| 1| Yes| 8.7+|8.0 and 8.1| +| 2.9.0-alpha04|2024/10/02| 1| Yes| 8.7+|8.0 and 8.1| | 2.9.0-alpha03|2024/09/18| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.9.0-alpha02|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.9.0-alpha01|2024/08/07| 1| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_lifecycle_lifecycle-viewmodel-compose-android.md.html b/docs/checks/androidx_lifecycle_lifecycle-viewmodel-compose-android.md.html index fb4af9b8..fef451e1 100644 --- a/docs/checks/androidx_lifecycle_lifecycle-viewmodel-compose-android.md.html +++ b/docs/checks/androidx_lifecycle_lifecycle-viewmodel-compose-android.md.html @@ -15,9 +15,9 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.lifecycle:lifecycle-viewmodel-compose-android:2.9.0-alpha03 +: androidx.lifecycle:lifecycle-viewmodel-compose-android:2.9.0-alpha07 (##) Included Issues @@ -33,17 +33,17 @@ ``` // build.gradle.kts -implementation("androidx.lifecycle:lifecycle-viewmodel-compose-android:2.9.0-alpha03") +implementation("androidx.lifecycle:lifecycle-viewmodel-compose-android:2.9.0-alpha07") // build.gradle -implementation 'androidx.lifecycle:lifecycle-viewmodel-compose-android:2.9.0-alpha03' +implementation 'androidx.lifecycle:lifecycle-viewmodel-compose-android:2.9.0-alpha07' // build.gradle.kts with version catalogs: implementation(libs.lifecycle.viewmodel.compose.android) # libs.versions.toml [versions] -lifecycle-viewmodel-compose-android = "2.9.0-alpha03" +lifecycle-viewmodel-compose-android = "2.9.0-alpha07" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -55,7 +55,7 @@ } ``` -2.9.0-alpha03 is the version this documentation was generated from; +2.9.0-alpha07 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -69,6 +69,10 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 2.9.0-alpha07|2024/11/13| 1| Yes| 8.7+|8.0 and 8.1| +| 2.9.0-alpha06|2024/10/30| 1| Yes| 8.7+|8.0 and 8.1| +| 2.9.0-alpha05|2024/10/16| 1| Yes| 8.7+|8.0 and 8.1| +| 2.9.0-alpha04|2024/10/02| 1| Yes| 8.7+|8.0 and 8.1| | 2.9.0-alpha03|2024/09/18| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.9.0-alpha02|2024/09/04| 1| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.9.0-alpha01|2024/08/07| 1| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_navigation_navigation-common.md.html b/docs/checks/androidx_navigation_navigation-common.md.html index d24da5b0..998e0ace 100644 --- a/docs/checks/androidx_navigation_navigation-common.md.html +++ b/docs/checks/androidx_navigation_navigation-common.md.html @@ -17,14 +17,16 @@ Compiled : Lint 8.0 and 8.1 Artifact -: androidx.navigation:navigation-common:2.8.1 +: androidx.navigation:navigation-common:2.9.0-alpha03 (##) Included Issues -|Issue Id |Issue Description | -|----------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -|[EmptyNavDeepLink](EmptyNavDeepLink.md.html) |NavDeepLink must define an uri, action, and/or mimetype to be valid | -|[WrongStartDestinationType](WrongStartDestinationType-3.md.html)|If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.| +|Issue Id |Issue Description | +|------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +|[EmptyNavDeepLink](EmptyNavDeepLink.md.html) |NavDeepLink must define an uri, action, and/or mimetype to be valid | +|[WrongStartDestinationType](WrongStartDestinationType-3.md.html) |If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.| +|[MissingSerializableAnnotation](MissingSerializableAnnotation-3.md.html)|Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable | +|[MissingKeepAnnotation](MissingKeepAnnotation-3.md.html) |In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep | (##) Including @@ -34,17 +36,17 @@ ``` // build.gradle.kts -implementation("androidx.navigation:navigation-common:2.8.1") +implementation("androidx.navigation:navigation-common:2.9.0-alpha03") // build.gradle -implementation 'androidx.navigation:navigation-common:2.8.1' +implementation 'androidx.navigation:navigation-common:2.9.0-alpha03' // build.gradle.kts with version catalogs: implementation(libs.navigation.common) # libs.versions.toml [versions] -navigation-common = "2.8.1" +navigation-common = "2.9.0-alpha03" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -56,13 +58,14 @@ } ``` -2.8.1 is the version this documentation was generated from; +2.9.0-alpha03 is the version this documentation was generated from; there may be newer versions available. (##) Changes * 2.6.0: First version includes EmptyNavDeepLink. * 2.8.0: Adds WrongStartDestinationType. +* 2.8.3: Adds MissingKeepAnnotation, MissingSerializableAnnotation. (##) Version Compatibility @@ -70,6 +73,12 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 2.9.0-alpha03|2024/11/13| 4| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.9.0-alpha02|2024/10/30| 4| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.9.0-alpha01|2024/10/16| 4| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.8.4|2024/11/13| 4| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.8.3|2024/10/16| 4| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.8.2|2024/10/02| 2| No[^1]| 8.0 and 8.1|8.0 and 8.1| | 2.8.1|2024/09/18| 2| No[^1]| 8.0 and 8.1|8.0 and 8.1| | 2.8.0|2024/09/04| 2| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.7.7|2024/02/07| 1| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_navigation_navigation-compose.md.html b/docs/checks/androidx_navigation_navigation-compose.md.html index 87b1cd05..df4840f0 100644 --- a/docs/checks/androidx_navigation_navigation-compose.md.html +++ b/docs/checks/androidx_navigation_navigation-compose.md.html @@ -15,7 +15,7 @@ Compiled : Lint 8.0 and 8.1 Artifact -: androidx.navigation:navigation-compose:2.8.1 +: androidx.navigation:navigation-compose:2.9.0-alpha03 (##) Included Issues @@ -25,6 +25,8 @@ |[ComposableNavGraphInComposeScope](ComposableNavGraphInComposeScope.md.html) |Building navigation graph in compose scope | |[UnrememberedGetBackStackEntry](UnrememberedGetBackStackEntry.md.html) |Calling getBackStackEntry during composition without using `remember`with a NavBackStackEntry key | |[WrongStartDestinationType](WrongStartDestinationType.md.html) |If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.| +|[MissingKeepAnnotation](MissingKeepAnnotation.md.html) |In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep | +|[MissingSerializableAnnotation](MissingSerializableAnnotation.md.html) |Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable | (##) Including @@ -34,17 +36,17 @@ ``` // build.gradle.kts -implementation("androidx.navigation:navigation-compose:2.8.1") +implementation("androidx.navigation:navigation-compose:2.9.0-alpha03") // build.gradle -implementation 'androidx.navigation:navigation-compose:2.8.1' +implementation 'androidx.navigation:navigation-compose:2.9.0-alpha03' // build.gradle.kts with version catalogs: implementation(libs.navigation.compose) # libs.versions.toml [versions] -navigation-compose = "2.8.1" +navigation-compose = "2.9.0-alpha03" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -56,7 +58,7 @@ } ``` -2.8.1 is the version this documentation was generated from; +2.9.0-alpha03 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -64,6 +66,7 @@ * 2.4.0: First version includes ComposableDestinationInComposeScope, ComposableNavGraphInComposeScope, UnrememberedGetBackStackEntry. * 2.8.0: Adds WrongStartDestinationType. +* 2.8.3: Adds MissingKeepAnnotation, MissingSerializableAnnotation. (##) Version Compatibility @@ -71,6 +74,12 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 2.9.0-alpha03|2024/11/13| 6| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.9.0-alpha02|2024/10/30| 6| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.9.0-alpha01|2024/10/16| 6| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.8.4|2024/11/13| 6| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.8.3|2024/10/16| 6| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.8.2|2024/10/02| 4| No[^1]| 8.0 and 8.1|8.0 and 8.1| | 2.8.1|2024/09/18| 4| No[^1]| 8.0 and 8.1|8.0 and 8.1| | 2.8.0|2024/09/04| 4| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.7.7|2024/02/07| 3| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_navigation_navigation-runtime.md.html b/docs/checks/androidx_navigation_navigation-runtime.md.html index f4d97e67..6011dbda 100644 --- a/docs/checks/androidx_navigation_navigation-runtime.md.html +++ b/docs/checks/androidx_navigation_navigation-runtime.md.html @@ -17,15 +17,17 @@ Compiled : Lint 8.0 and 8.1 Artifact -: androidx.navigation:navigation-runtime:2.8.1 +: androidx.navigation:navigation-runtime:2.9.0-alpha03 (##) Included Issues -|Issue Id |Issue Description | -|----------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -|[DeepLinkInActivityDestination](DeepLinkInActivityDestination.md.html)|A should not be attached to an destination | -|[WrongStartDestinationType](WrongStartDestinationType-2.md.html) |If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.| -|[WrongNavigateRouteType](WrongNavigateRouteType.md.html) |Navigation route should be an object literal or a destination class instance with arguments | +|Issue Id |Issue Description | +|------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +|[DeepLinkInActivityDestination](DeepLinkInActivityDestination.md.html) |A should not be attached to an destination | +|[WrongStartDestinationType](WrongStartDestinationType-2.md.html) |If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.| +|[WrongNavigateRouteType](WrongNavigateRouteType.md.html) |Navigation route should be an object literal or a destination class instance with arguments | +|[MissingKeepAnnotation](MissingKeepAnnotation-2.md.html) |In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep | +|[MissingSerializableAnnotation](MissingSerializableAnnotation-2.md.html)|Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable | (##) Including @@ -35,17 +37,17 @@ ``` // build.gradle.kts -implementation("androidx.navigation:navigation-runtime:2.8.1") +implementation("androidx.navigation:navigation-runtime:2.9.0-alpha03") // build.gradle -implementation 'androidx.navigation:navigation-runtime:2.8.1' +implementation 'androidx.navigation:navigation-runtime:2.9.0-alpha03' // build.gradle.kts with version catalogs: implementation(libs.navigation.runtime) # libs.versions.toml [versions] -navigation-runtime = "2.8.1" +navigation-runtime = "2.9.0-alpha03" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -57,13 +59,14 @@ } ``` -2.8.1 is the version this documentation was generated from; +2.9.0-alpha03 is the version this documentation was generated from; there may be newer versions available. (##) Changes * 2.5.0: First version includes DeepLinkInActivityDestination. * 2.8.0: Adds WrongNavigateRouteType, WrongStartDestinationType. +* 2.8.3: Adds MissingKeepAnnotation, MissingSerializableAnnotation. (##) Version Compatibility @@ -71,6 +74,12 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 2.9.0-alpha03|2024/11/13| 5| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.9.0-alpha02|2024/10/30| 5| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.9.0-alpha01|2024/10/16| 5| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.8.4|2024/11/13| 5| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.8.3|2024/10/16| 5| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.8.2|2024/10/02| 3| No[^1]| 8.0 and 8.1|8.0 and 8.1| | 2.8.1|2024/09/18| 3| No[^1]| 8.0 and 8.1|8.0 and 8.1| | 2.8.0|2024/09/04| 3| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.7.7|2024/02/07| 1| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_wear_protolayout_protolayout-expression.md.html b/docs/checks/androidx_wear_protolayout_protolayout-expression.md.html deleted file mode 100644 index 01f72eba..00000000 --- a/docs/checks/androidx_wear_protolayout_protolayout-expression.md.html +++ /dev/null @@ -1,78 +0,0 @@ -(#) androidx.wear.protolayout:protolayout-expression - -Name -: ProtoLayout Expression -Description -: Create dynamic expressions (for late evaluation by a remote evaluator). -License -: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) -Vendor -: Android Open Source Project -Identifier -: androidx.wear.protolayout -Feedback -: https://issuetracker.google.com/issues/new?component=1112273 -Min -: Lint 8.0 and 8.1 -Compiled -: Lint 8.0 and 8.1 -Artifact -: androidx.wear.protolayout:protolayout-expression:1.2.0 - -(##) Included Issues - -|Issue Id |Issue Description | -|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------| -|[ProtoLayoutMinSchema](ProtoLayoutMinSchema.md.html) |ProtoLayout feature is not guaranteed to be available on the target device API | -|[ProtoLayoutPrimaryLayoutResponsive](ProtoLayoutPrimaryLayoutResponsive.md.html) |ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales | -|[ProtoLayoutEdgeContentLayoutResponsive](ProtoLayoutEdgeContentLayoutResponsive.md.html)|ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales| - -(##) Including - -!!! - This is not a built-in check. To include it, add the below dependency - to your project. - -``` -// build.gradle.kts -implementation("androidx.wear.protolayout:protolayout-expression:1.2.0") - -// build.gradle -implementation 'androidx.wear.protolayout:protolayout-expression:1.2.0' - -// build.gradle.kts with version catalogs: -implementation(libs.protolayout.expression) - -# libs.versions.toml -[versions] -protolayout-expression = "1.2.0" -[libraries] -# For clarity and text wrapping purposes the following declaration is -# shown split up across lines, but in TOML it needs to be on a single -# line (see https://github.com/toml-lang/toml/issues/516) so adjust -# when pasting into libs.versions.toml: -protolayout-expression = { - module = "androidx.wear.protolayout:protolayout-expression", - version.ref = "protolayout-expression" -} -``` - -1.2.0 is the version this documentation was generated from; -there may be newer versions available. - -(##) Changes - -* 1.1.0: First version includes ProtoLayoutMinSchema. -* 1.2.0: Adds ProtoLayoutEdgeContentLayoutResponsive, - ProtoLayoutPrimaryLayoutResponsive. - -(##) Version Compatibility - -There are multiple older versions available of this library: - -| Version | Date | Issues | Compatible | Compiled | Requires | -|-------------------:|----------|-------:|------------|--------------:|---------:| -| 1.2.0|2024/08/07| 3| Yes| 8.0 and 8.1|8.0 and 8.1| -| 1.1.0|2024/02/07| 1| Yes| 8.0 and 8.1|8.0 and 8.1| - - \ No newline at end of file diff --git a/docs/checks/androidx_wear_protolayout_protolayout-material.md.html b/docs/checks/androidx_wear_protolayout_protolayout-material.md.html deleted file mode 100644 index 5a4bb0c5..00000000 --- a/docs/checks/androidx_wear_protolayout_protolayout-material.md.html +++ /dev/null @@ -1,64 +0,0 @@ -(#) androidx.wear.protolayout:protolayout-material - -Name -: androidx.wear.protolayout:protolayout-material -Description -: Material components library for ProtoLayout. -License -: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) -Vendor -: Android Open Source Project -Identifier -: androidx.wear.protolayout -Feedback -: https://issuetracker.google.com/issues/new?component=1112273 -Min -: Lint 8.0 and 8.1 -Compiled -: Lint 8.0 and 8.1 -Artifact -: androidx.wear.protolayout:protolayout-material:1.2.0 - -(##) Included Issues - -|Issue Id |Issue Description | -|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------| -|[ProtoLayoutMinSchema](ProtoLayoutMinSchema-2.md.html) |ProtoLayout feature is not guaranteed to be available on the target device API | -|[ProtoLayoutPrimaryLayoutResponsive](ProtoLayoutPrimaryLayoutResponsive-2.md.html) |ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales | -|[ProtoLayoutEdgeContentLayoutResponsive](ProtoLayoutEdgeContentLayoutResponsive-2.md.html)|ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales| - -(##) Including - -!!! - This is not a built-in check. To include it, add the below dependency - to your project. - -``` -// build.gradle.kts -implementation("androidx.wear.protolayout:protolayout-material:1.2.0") - -// build.gradle -implementation 'androidx.wear.protolayout:protolayout-material:1.2.0' - -// build.gradle.kts with version catalogs: -implementation(libs.protolayout.material) - -# libs.versions.toml -[versions] -protolayout-material = "1.2.0" -[libraries] -# For clarity and text wrapping purposes the following declaration is -# shown split up across lines, but in TOML it needs to be on a single -# line (see https://github.com/toml-lang/toml/issues/516) so adjust -# when pasting into libs.versions.toml: -protolayout-material = { - module = "androidx.wear.protolayout:protolayout-material", - version.ref = "protolayout-material" -} -``` - -1.2.0 is the version this documentation was generated from; -there may be newer versions available. - - - \ No newline at end of file diff --git a/docs/checks/androidx_wear_protolayout_protolayout.md.html b/docs/checks/androidx_wear_protolayout_protolayout.md.html index bbe413bb..c0845c29 100644 --- a/docs/checks/androidx_wear_protolayout_protolayout.md.html +++ b/docs/checks/androidx_wear_protolayout_protolayout.md.html @@ -13,19 +13,19 @@ Feedback : https://issuetracker.google.com/issues/new?component=1112273 Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.wear.protolayout:protolayout:1.2.0 +: androidx.wear.protolayout:protolayout:1.3.0-alpha04 (##) Included Issues -|Issue Id |Issue Description | -|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------| -|[ProtoLayoutMinSchema](ProtoLayoutMinSchema-3.md.html) |ProtoLayout feature is not guaranteed to be available on the target device API | -|[ProtoLayoutPrimaryLayoutResponsive](ProtoLayoutPrimaryLayoutResponsive-3.md.html) |ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales | -|[ProtoLayoutEdgeContentLayoutResponsive](ProtoLayoutEdgeContentLayoutResponsive-3.md.html)|ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales| +|Issue Id |Issue Description | +|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------| +|[ProtoLayoutMinSchema](ProtoLayoutMinSchema.md.html) |ProtoLayout feature is not guaranteed to be available on the target device API | +|[ProtoLayoutPrimaryLayoutResponsive](ProtoLayoutPrimaryLayoutResponsive.md.html) |ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales | +|[ProtoLayoutEdgeContentLayoutResponsive](ProtoLayoutEdgeContentLayoutResponsive.md.html)|ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales| (##) Including @@ -35,17 +35,17 @@ ``` // build.gradle.kts -implementation("androidx.wear.protolayout:protolayout:1.2.0") +implementation("androidx.wear.protolayout:protolayout:1.3.0-alpha04") // build.gradle -implementation 'androidx.wear.protolayout:protolayout:1.2.0' +implementation 'androidx.wear.protolayout:protolayout:1.3.0-alpha04' // build.gradle.kts with version catalogs: implementation(libs.protolayout) # libs.versions.toml [versions] -protolayout = "1.2.0" +protolayout = "1.3.0-alpha04" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -57,9 +57,16 @@ } ``` -1.2.0 is the version this documentation was generated from; +1.3.0-alpha04 is the version this documentation was generated from; there may be newer versions available. +NOTE: These lint checks are **also** made available separate from the main library. +Use one of the following artifacts: +* `androidx.wear.protolayout:protolayout-expression:1.3.0-alpha04` +* `androidx.wear.protolayout:protolayout-material3:1.3.0-alpha04` +* `androidx.wear.protolayout:protolayout-material:1.3.0-alpha04` + + (##) Changes * 1.1.0: First version includes ProtoLayoutMinSchema. @@ -72,6 +79,11 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.3.0-alpha04|2024/11/13| 3| Yes| 8.7+| 8.7+| +| 1.3.0-alpha03|2024/10/30| 3| Yes| 8.7+| 8.7+| +| 1.3.0-alpha02|2024/10/16| 3| Yes| 8.7+| 8.7+| +| 1.3.0-alpha01|2024/10/02| 3| Yes| 8.7+| 8.7+| +| 1.2.1|2024/10/16| 3| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.2.0|2024/08/07| 3| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.1.0|2024/02/07| 1| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/androidx_work_work-runtime.md.html b/docs/checks/androidx_work_work-runtime.md.html index dd18fbc0..6c95a4a7 100644 --- a/docs/checks/androidx_work_work-runtime.md.html +++ b/docs/checks/androidx_work_work-runtime.md.html @@ -15,9 +15,9 @@ Min : Lint 8.0 and 8.1 Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: androidx.work:work-runtime:2.10.0-alpha04 +: androidx.work:work-runtime:2.10.0 (##) Included Issues @@ -41,17 +41,17 @@ ``` // build.gradle.kts -implementation("androidx.work:work-runtime:2.10.0-alpha04") +implementation("androidx.work:work-runtime:2.10.0") // build.gradle -implementation 'androidx.work:work-runtime:2.10.0-alpha04' +implementation 'androidx.work:work-runtime:2.10.0' // build.gradle.kts with version catalogs: implementation(libs.work.runtime) # libs.versions.toml [versions] -work-runtime = "2.10.0-alpha04" +work-runtime = "2.10.0" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -63,7 +63,7 @@ } ``` -2.10.0-alpha04 is the version this documentation was generated from; +2.10.0 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -82,10 +82,7 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| -| 2.10.0-alpha04|2024/09/18| 9| Yes| 8.0 and 8.1|8.0 and 8.1| -| 2.10.0-alpha03|2024/09/04| 9| Yes| 8.0 and 8.1|8.0 and 8.1| -| 2.10.0-alpha02|2024/04/17| 9| Yes| 8.0 and 8.1|8.0 and 8.1| -| 2.10.0-alpha01|2024/01/24| 9| Yes| 8.0 and 8.1|8.0 and 8.1| +| 2.10.0|2024/10/30| 9| Yes| 8.7+|8.0 and 8.1| | 2.9.1|2024/08/07| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.9.0|2023/11/29| 9| Yes| 8.0 and 8.1|8.0 and 8.1| | 2.8.1|2023/03/22| 9| Yes| 7.3 and 7.4| 7.0| diff --git a/docs/checks/categories.md.html b/docs/checks/categories.md.html index 9ad1028a..e63885ad 100644 --- a/docs/checks/categories.md.html +++ b/docs/checks/categories.md.html @@ -3,7 +3,7 @@ Order: [Alphabetical](index.md.html) | By category | [By vendor](vendors.md.html) | [By severity](severity.md.html) | [By year](year.md.html) | [Libraries](libraries.md.html) -* Correctness (524) +* Correctness (529) - [AaptCrash: Potential AAPT crash](AaptCrash.md.html) - [AccidentalOctal: Accidental Octal](AccidentalOctal.md.html) @@ -16,12 +16,15 @@ - [AppCompatMethod: Using Wrong AppCompat Method](AppCompatMethod.md.html) - [AppCompatResource: Menu namespace](AppCompatResource.md.html) - [AppIndexingService: App Indexing Background Services](AppIndexingService.md.html) + - [AppLinkSplitToWebAndCustom: Android App links should only use http(s) schemes](AppLinkSplitToWebAndCustom.md.html) - [AppLinkUrlError: URI invalid](AppLinkUrlError.md.html) + - [AppLinkWarning: App Link warning](AppLinkWarning.md.html) - [AppLinksAutoVerify: App Links Auto Verification Failure](AppLinksAutoVerify.md.html) - [ApplySharedPref: Use `apply()` on `SharedPreferences`](ApplySharedPref.md.html) - [ArcAnimationSpecTypeIssue: ArcAnimationSpec is designed for 2D values. Particularly, for positional values such as Offset.](ArcAnimationSpecTypeIssue.md.html) - [AssertjImport: Flags Java 6 incompatible imports](AssertjImport.md.html) - [AutoDispose: Missing Disposable handling: Apply AutoDispose or cache the Disposable instance manually and enable lenient mode](AutoDispose.md.html) + - [AvoidUsingNotNullOperator: Avoid using the !! operator in Kotlin](AvoidUsingNotNullOperator.md.html) - [BadConfigurationProvider: Invalid WorkManager Configuration Provider](BadConfigurationProvider.md.html) - [BadPeriodicWorkRequestEnqueue: Use `enqueueUniquePeriodicWork()` instead of `enqueue()`](BadPeriodicWorkRequestEnqueue.md.html) - [BatteryLife: Battery Life Issues](BatteryLife.md.html) @@ -48,7 +51,6 @@ - [ComposableLambdaParameterPosition: Non-trailing primary composable lambda parameter](ComposableLambdaParameterPosition.md.html) - [ComposableNaming: Incorrect naming for @Composable functions](ComposableNaming.md.html) - [ComposableNavGraphInComposeScope: Building navigation graph in compose scope](ComposableNavGraphInComposeScope.md.html) - - [ComposeComposableModifier: Don't use @Composable builder functions for modifiers](ComposeComposableModifier.md.html) - [ComposeM2Api: Using a Compose M2 API is not recommended](ComposeM2Api.md.html) - [ComposeModifierComposed: Don't use Modifier.composed {}](ComposeModifierComposed.md.html) - [ComposeViewModelForwarding: Don't forward ViewModels through composables](ComposeViewModelForwarding.md.html) @@ -57,6 +59,7 @@ - [ConflictingOnColor: Background colors with the same value should have the same 'on' color](ConflictingOnColor.md.html) - [ConstantContentStateKeyInItemsCall: Composables within an LazyList `items` call should have unique content state keys](ConstantContentStateKeyInItemsCall.md.html) - [ConstraintLayoutToolsEditorAttribute: Flags tools:layout_editor xml properties](ConstraintLayoutToolsEditorAttribute.md.html) + - [ContextCastToActivity: LocalContext should not be cast to Activity, use LocalActivity instead](ContextCastToActivity.md.html) - [CoroutineCreationDuringComposition: Calls to `async` or `launch` should happen inside a LaunchedEffect and not composition](CoroutineCreationDuringComposition.md.html) - [CredManMissingDal: Missing Digital Asset Link for Credential Manager](CredManMissingDal.md.html) - [CredentialDependency: `credentials-play-services-auth` is Required](CredentialDependency.md.html) @@ -127,7 +130,7 @@ - [FragmentConstructorInjection: Fragment dependencies should be injected using constructor injections only](FragmentConstructorInjection.md.html) - [FragmentFieldInjection: Fragment dependencies should be injected using the Fragment's constructor](FragmentFieldInjection.md.html) - [FragmentGradleConfiguration: Include the fragment-testing library using the debugImplementation configuration](FragmentGradleConfiguration.md.html) - - [FragmentGradleConfiguration: Include the fragment-testing-manifest library using the debugImplementation configuration](FragmentGradleConfiguration.md.html) + - [FragmentGradleConfiguration: Include the fragment-testing-manifest library using the debugImplementation configuration](FragmentGradleConfiguration-2.md.html) - [FragmentLiveDataObserve: Use getViewLifecycleOwner() as the LifecycleOwner instead of a Fragment instance when observing a LiveData object](FragmentLiveDataObserve.md.html) - [FragmentTagUsage: Use FragmentContainerView instead of the tag](FragmentTagUsage.md.html) - [FullBackupContent: Valid Full Backup Content File](FullBackupContent.md.html) @@ -231,6 +234,9 @@ - [MissingId: Fragments should specify an `id` or `tag`](MissingId.md.html) - [MissingInflatedId: ID not found in inflated resource](MissingInflatedId.md.html) - [MissingIntentFilterForMediaSearch: Missing MEDIA_PLAY_FROM_SEARCH intent-filter](MissingIntentFilterForMediaSearch.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation-2.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation-3.md.html) - [MissingLeanbackLauncher: Missing Leanback Launcher Intent Filter](MissingLeanbackLauncher.md.html) - [MissingLeanbackSupport: Missing Leanback Support](MissingLeanbackSupport.md.html) - [MissingMediaBrowserServiceIntentFilter: Missing MediaBrowserService intent-filter](MissingMediaBrowserServiceIntentFilter.md.html) @@ -239,6 +245,9 @@ - [MissingPrefix: Missing Android XML namespace](MissingPrefix.md.html) - [MissingResourceImportAlias: Missing import alias for R class](MissingResourceImportAlias.md.html) - [MissingScrollbars: Scroll views should declare a scrollbar](MissingScrollbars.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation-2.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation-3.md.html) - [MissingSuperCall: Missing Super Call](MissingSuperCall.md.html) - [MissingTvBanner: TV Missing Banner](MissingTvBanner.md.html) - [MissingVersion: Missing application name/version](MissingVersion.md.html) @@ -341,13 +350,7 @@ - [PropertyEscape: Incorrect property escapes](PropertyEscape.md.html) - [ProtectedPermissions: Using system app permission](ProtectedPermissions.md.html) - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) - - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) - - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) - - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) - - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) - - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) - - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) - [ProvidesMustNotBeAbstract: @Provides functions cannot be abstract](ProvidesMustNotBeAbstract.md.html) - [PublicKeyCredential: Creating public key credential](PublicKeyCredential.md.html) @@ -368,7 +371,7 @@ - [RemoteViewLayout: Unsupported View in RemoteView](RemoteViewLayout.md.html) - [RemoveWorkManagerInitializer: Remove androidx.work.WorkManagerInitializer from your AndroidManifest.xml when using on-demand initialization](RemoveWorkManagerInitializer.md.html) - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage.md.html) - - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage.md.html) + - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage-2.md.html) - [RequiredSize: Missing `layout_width` or `layout_height` attributes](RequiredSize.md.html) - [RequiresFeature: Requires Feature](RequiresFeature.md.html) - [ResAuto: Hardcoded Package in Namespace](ResAuto.md.html) @@ -405,6 +408,7 @@ - [SimilarGradleDependency: Multiple Versions Gradle Dependency](SimilarGradleDependency.md.html) - [SimpleDateFormat: Implied locale in date format](SimpleDateFormat.md.html) - [Slices: Slices](Slices.md.html) + - [SlotReused: Slots should be invoked in at most one place](SlotReused.md.html) - [SoonBlockedPrivateApi: Using Soon-to-Be Blocked Private API](SoonBlockedPrivateApi.md.html) - [SourceLockedOrientationActivity: Incompatible setRequestedOrientation value](SourceLockedOrientationActivity.md.html) - [SpUsage: Using `dp` instead of `sp` for text sizes](SpUsage.md.html) @@ -448,7 +452,7 @@ - [UnrememberedMutableInteractionSource: Creating a MutableInteractionSource during composition without using `remember`](UnrememberedMutableInteractionSource.md.html) - [UnrememberedMutableState: Creating a state object during composition without using `remember`](UnrememberedMutableState.md.html) - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage.md.html) - - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage.md.html) + - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage-2.md.html) - [UnsafeOptInUsageError: Unsafe opt-in usage intended to be error-level severity](UnsafeOptInUsageError.md.html) - [UnsafeOptInUsageWarning: Unsafe opt-in usage intended to be warning-level severity](UnsafeOptInUsageWarning.md.html) - [UnsafeRepeatOnLifecycleDetector: RepeatOnLifecycle should be used with viewLifecycleOwner in Fragments](UnsafeRepeatOnLifecycleDetector.md.html) @@ -519,9 +523,10 @@ - [WrongRegion: Suspicious Language/Region Combination](WrongRegion.md.html) - [WrongRequiresOptIn: Experimental annotations defined in Kotlin must use kotlin.RequiresOptIn](WrongRequiresOptIn.md.html) - [WrongResourceImportAlias: Wrong import alias for this R class](WrongResourceImportAlias.md.html) + - [WrongSdkInt: Mismatched SDK_INT or SDK_INT_FULL](WrongSdkInt.md.html) - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) - - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) - - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) + - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType-2.md.html) + - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType-3.md.html) - [WrongTestMethodName: Flags test methods that start with test](WrongTestMethodName.md.html) - [WrongThread: Wrong Thread](WrongThread.md.html) - [WrongThreadInterprocedural: Wrong Thread (Interprocedural)](WrongThreadInterprocedural.md.html) @@ -562,7 +567,7 @@ - [PermissionImpliesUnsupportedChromeOsHardware: Permission Implies Unsupported Chrome OS Hardware](PermissionImpliesUnsupportedChromeOsHardware.md.html) - [UnsupportedChromeOsHardware: Unsupported Chrome OS Hardware Feature](UnsupportedChromeOsHardware.md.html) -* Security (79) +* Security (80) - [AcceptsUserCertificates: Allowing User Certificates](AcceptsUserCertificates.md.html) - [AddJavascriptInterface: `addJavascriptInterface` Called](AddJavascriptInterface.md.html) @@ -579,6 +584,7 @@ - [DeletedProvider: Using Deleted Provider](DeletedProvider.md.html) - [DeprecatedProvider: Using BC Provider](DeprecatedProvider.md.html) - [DisabledAllSafeBrowsing: Application has disabled safe browsing for all WebView objects](DisabledAllSafeBrowsing.md.html) + - [DoNotCallViewToString: Do not use `View.toString()`](DoNotCallViewToString.md.html) - [EasterEgg: Code contains easter egg](EasterEgg.md.html) - [ExportedContentProvider: Content provider does not require permission](ExportedContentProvider.md.html) - [ExportedPreferenceActivity: PreferenceActivity should not be exported](ExportedPreferenceActivity.md.html) @@ -631,7 +637,7 @@ - [UnsafeIntentLaunch: Launched Unsafe Intent](UnsafeIntentLaunch.md.html) - [UnsafeNativeCodeLocation: Native code outside library directory](UnsafeNativeCodeLocation.md.html) - [UnsafeProtectedBroadcastReceiver: Unsafe Protected `BroadcastReceiver`](UnsafeProtectedBroadcastReceiver.md.html) - - [UnsanitizedFilenameFromContentProvider: Trusting ContentProvider filenames without any sanitization](UnsanitizedFilenameFromContentProvider.md.html) + - [UnsanitizedContentProviderFilename: Trusting ContentProvider filenames without any sanitization](UnsanitizedContentProviderFilename.md.html) - [UnsanitizedFilenameFromContentProvider: Trusting ContentProvider filenames without any sanitization](UnsanitizedFilenameFromContentProvider.md.html) - [UnspecifiedImmutableFlag: Missing `PendingIntent` mutability flag](UnspecifiedImmutableFlag.md.html) - [UseCheckPermission: Using the result of check permission calls](UseCheckPermission.md.html) @@ -785,7 +791,7 @@ - [ModifierNodeInspectableProperties: ModifierNodeElement missing inspectableProperties](ModifierNodeInspectableProperties.md.html) - [UseTomlInstead: Use TOML Version Catalog Instead](UseTomlInstead.md.html) -* Accessibility (8) +* Accessibility (9) - [AccessibilityFocus: Forcing accessibility focus](AccessibilityFocus.md.html) - [AccessibilityScrollActions: Incomplete Scroll Action support](AccessibilityScrollActions.md.html) @@ -793,6 +799,7 @@ - [ClickableViewAccessibility: Accessibility in Custom Views](ClickableViewAccessibility.md.html) - [ContentDescription: Image without `contentDescription`](ContentDescription.md.html) - [GetContentDescriptionOverride: Overriding `getContentDescription()` on a View](GetContentDescriptionOverride.md.html) + - [InflationInItemDecoration: Avoid inflating a view to display text](InflationInItemDecoration.md.html) - [KeyboardInaccessibleWidget: Keyboard inaccessible widget](KeyboardInaccessibleWidget.md.html) - [LabelFor: Missing accessibility label](LabelFor.md.html) @@ -829,7 +836,7 @@ - [LambdaLast: Lambda Parameters Last](LambdaLast.md.html) - [NoHardKeywords: No Hard Kotlin Keywords](NoHardKeywords.md.html) - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData.md.html) - - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData.md.html) + - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData-2.md.html) - [UnknownNullness: Unknown nullness](UnknownNullness.md.html) * Lint Implementation Issues (12) diff --git a/docs/checks/com_android_security_lint_lint.md.html b/docs/checks/com_android_security_lint_lint.md.html index 3356d93a..82cb4932 100644 --- a/docs/checks/com_android_security_lint_lint.md.html +++ b/docs/checks/com_android_security_lint_lint.md.html @@ -13,30 +13,30 @@ Compiled : Lint 8.0 and 8.1 Artifact -: com.android.security.lint:lint:1.0.2 +: com.android.security.lint:lint:1.0.3 (##) Included Issues -|Issue Id |Issue Description | -|------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------| -|[VulnerableCryptoAlgorithm](VulnerableCryptoAlgorithm.md.html) |Application uses vulnerable cryptography algorithms | -|[UnsafeCryptoAlgorithmUsage](UnsafeCryptoAlgorithmUsage.md.html) |Application uses unsafe cipher modes or paddings with cryptographic algorithms | -|[MissingAutoVerifyAttribute](MissingAutoVerifyAttribute.md.html) |Application has custom scheme intent filters with missing `autoVerify` attributes| -|[InsecureDnsSdkLevel](InsecureDnsSdkLevel.md.html) |Application vulnerable to DNS spoofing attacks | -|[StrandhoggVulnerable](StrandhoggVulnerable.md.html) |Application vulnerable to Strandhogg attacks | -|[TapjackingVulnerable](TapjackingVulnerable.md.html) |Application's UI is vulnerable to tapjacking attacks | -|[DefaultCleartextTraffic](DefaultCleartextTraffic.md.html) |Application by default permits cleartext traffic | -|[DefaultTrustedUserCerts](DefaultTrustedUserCerts.md.html) |Application by default trusts user-added CA certificates | -|[UnintendedExposedUrl](UnintendedExposedUrl.md.html) |Application may have a debugging or development URL publicly exposed | -|[UnintendedPrivateIpAddress](UnintendedPrivateIpAddress.md.html) |Application may have a private IP address publicly exposed | -|[ExposedRootPath](ExposedRootPath.md.html) |Application specifies the device root directory | -|[SensitiveExternalPath](SensitiveExternalPath.md.html) |Application may expose sensitive info like PII by storing it in external storage | -|[WeakPrng](WeakPrng.md.html) |Application uses non-cryptographically secure pseudorandom number generators | -|[DisabledAllSafeBrowsing](DisabledAllSafeBrowsing.md.html) |Application has disabled safe browsing for all WebView objects | -|[InsecurePermissionProtectionLevel](InsecurePermissionProtectionLevel.md.html) |Custom permission created with a normal `protectionLevel` | -|[UnsanitizedFilenameFromContentProvider](UnsanitizedFilenameFromContentProvider-2.md.html)|Trusting ContentProvider filenames without any sanitization | -|[InsecureStickyBroadcastsMethod](InsecureStickyBroadcastsMethod.md.html) |Usage of insecure sticky broadcasts | -|[InsecureStickyBroadcastsPermission](InsecureStickyBroadcastsPermission.md.html) |Usage of insecure sticky broadcasts | +|Issue Id |Issue Description | +|--------------------------------------------------------------------------------|---------------------------------------------------------------------------------| +|[VulnerableCryptoAlgorithm](VulnerableCryptoAlgorithm.md.html) |Application uses vulnerable cryptography algorithms | +|[UnsafeCryptoAlgorithmUsage](UnsafeCryptoAlgorithmUsage.md.html) |Application uses unsafe cipher modes or paddings with cryptographic algorithms | +|[MissingAutoVerifyAttribute](MissingAutoVerifyAttribute.md.html) |Application has custom scheme intent filters with missing `autoVerify` attributes| +|[InsecureDnsSdkLevel](InsecureDnsSdkLevel.md.html) |Application vulnerable to DNS spoofing attacks | +|[StrandhoggVulnerable](StrandhoggVulnerable.md.html) |Application vulnerable to Strandhogg attacks | +|[TapjackingVulnerable](TapjackingVulnerable.md.html) |Application's UI is vulnerable to tapjacking attacks | +|[DefaultCleartextTraffic](DefaultCleartextTraffic.md.html) |Application by default permits cleartext traffic | +|[DefaultTrustedUserCerts](DefaultTrustedUserCerts.md.html) |Application by default trusts user-added CA certificates | +|[UnintendedExposedUrl](UnintendedExposedUrl.md.html) |Application may have a debugging or development URL publicly exposed | +|[UnintendedPrivateIpAddress](UnintendedPrivateIpAddress.md.html) |Application may have a private IP address publicly exposed | +|[ExposedRootPath](ExposedRootPath.md.html) |Application specifies the device root directory | +|[SensitiveExternalPath](SensitiveExternalPath.md.html) |Application may expose sensitive info like PII by storing it in external storage | +|[WeakPrng](WeakPrng.md.html) |Application uses non-cryptographically secure pseudorandom number generators | +|[DisabledAllSafeBrowsing](DisabledAllSafeBrowsing.md.html) |Application has disabled safe browsing for all WebView objects | +|[InsecurePermissionProtectionLevel](InsecurePermissionProtectionLevel.md.html) |Custom permission created with a normal `protectionLevel` | +|[UnsanitizedContentProviderFilename](UnsanitizedContentProviderFilename.md.html)|Trusting ContentProvider filenames without any sanitization | +|[InsecureStickyBroadcastsMethod](InsecureStickyBroadcastsMethod.md.html) |Usage of insecure sticky broadcasts | +|[InsecureStickyBroadcastsPermission](InsecureStickyBroadcastsPermission.md.html)|Usage of insecure sticky broadcasts | (##) Including @@ -47,17 +47,17 @@ ``` // build.gradle.kts -lintChecks("com.android.security.lint:lint:1.0.2") +lintChecks("com.android.security.lint:lint:1.0.3") // build.gradle -lintChecks 'com.android.security.lint:lint:1.0.2' +lintChecks 'com.android.security.lint:lint:1.0.3' // build.gradle.kts with version catalogs: lintChecks(libs.com.android.security.lint.lint) # libs.versions.toml [versions] -com-android-security-lint-lint = "1.0.2" +com-android-security-lint-lint = "1.0.3" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -69,7 +69,7 @@ } ``` -1.0.2 is the version this documentation was generated from; +1.0.3 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -84,6 +84,8 @@ * 1.0.2: Adds InsecureStickyBroadcastsMethod, InsecureStickyBroadcastsPermission, UnsanitizedFilenameFromContentProvider. +* 1.0.3: Adds UnsanitizedContentProviderFilename. Removes + UnsanitizedFilenameFromContentProvider. (##) Version Compatibility @@ -91,6 +93,7 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.0.3| | 18| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.0.2| | 18| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.0.1| | 15| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/com_slack_lint_compose_compose-lint-checks.md.html b/docs/checks/com_slack_lint_compose_compose-lint-checks.md.html index c2f0ab90..2b043093 100644 --- a/docs/checks/com_slack_lint_compose_compose-lint-checks.md.html +++ b/docs/checks/com_slack_lint_compose_compose-lint-checks.md.html @@ -13,11 +13,11 @@ Feedback : https://github.com/slackhq/compose-lints/issues Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: com.slack.lint.compose:compose-lint-checks:1.3.1 +: com.slack.lint.compose:compose-lint-checks:1.4.2 (##) Included Issues @@ -28,7 +28,6 @@ |[ComposeCompositionLocalUsage](ComposeCompositionLocalUsage.md.html) |CompositionLocals are discouraged | |[ComposeCompositionLocalGetter](ComposeCompositionLocalGetter.md.html) |CompositionLocals should not use getters | |[ComposeContentEmitterReturningValues](ComposeContentEmitterReturningValues.md.html)|Composable functions should emit XOR return | -|[ComposeComposableModifier](ComposeComposableModifier.md.html) |Don't use @Composable builder functions for modifiers | |[ComposeModifierMissing](ComposeModifierMissing.md.html) |Missing modifier parameter | |[ComposeModifierReused](ComposeModifierReused.md.html) |Modifiers should only be used once | |[ComposeModifierWithoutDefault](ComposeModifierWithoutDefault.md.html) |Missing Modifier default value | @@ -39,6 +38,7 @@ |[ComposePreviewNaming](ComposePreviewNaming.md.html) |Preview annotations require certain suffixes | |[ComposePreviewPublic](ComposePreviewPublic.md.html) |Preview composables should be private | |[ComposeRememberMissing](ComposeRememberMissing.md.html) |State values should be remembered | +|[SlotReused](SlotReused.md.html) |Slots should be invoked in at most one place | |[ComposeUnstableCollections](ComposeUnstableCollections.md.html) |Immutable collections should ideally be used in Composables | |[ComposeViewModelForwarding](ComposeViewModelForwarding.md.html) |Don't forward ViewModels through composables | |[ComposeViewModelInjection](ComposeViewModelInjection.md.html) |Implicit dependencies of composables should be made explicit| @@ -54,17 +54,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint.compose:compose-lint-checks:1.3.1") +lintChecks("com.slack.lint.compose:compose-lint-checks:1.4.2") // build.gradle -lintChecks 'com.slack.lint.compose:compose-lint-checks:1.3.1' +lintChecks 'com.slack.lint.compose:compose-lint-checks:1.4.2' // build.gradle.kts with version catalogs: lintChecks(libs.compose.lint.checks) # libs.versions.toml [versions] -compose-lint-checks = "1.3.1" +compose-lint-checks = "1.4.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -76,7 +76,7 @@ } ``` -1.3.1 is the version this documentation was generated from; +1.4.2 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -93,6 +93,7 @@ * 1.1.0: Adds ComposeM2Api. * 1.3.0: Adds ComposeCompositionLocalGetter, ComposeModifierComposed, ComposeUnstableReceiver. +* 1.4.0: Adds SlotReused. Removes ComposeComposableModifier. (##) Version Compatibility @@ -100,6 +101,9 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 1.4.2|2024/10/22| 21| Yes| 8.7+| 8.7+| +| 1.4.1|2024/10/02| 21| Yes| 8.7+| 8.7+| +| 1.4.0|2024/10/02| 21| Yes| 8.7+| 8.7+| | 1.3.1|2024/01/25| 21| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.3.0|2024/01/25| 21| Yes| 8.2 to 8.6|8.2 to 8.6| | 1.2.0|2023/04/19| 18| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/com_slack_lint_slack-lint-checks.md.html b/docs/checks/com_slack_lint_slack-lint-checks.md.html index 9c072c94..661d6443 100644 --- a/docs/checks/com_slack_lint_slack-lint-checks.md.html +++ b/docs/checks/com_slack_lint_slack-lint-checks.md.html @@ -15,11 +15,11 @@ Feedback : https://github.com/slackhq/slack-lints Min -: Lint 8.0 and 8.1 +: Lint 8.7+ Compiled -: Lint 8.0 and 8.1 +: Lint 8.7+ Artifact -: com.slack.lint:slack-lint-checks:0.7.4 +: com.slack.lint:slack-lint-checks:0.8.2 (##) Included Issues @@ -116,6 +116,9 @@ |[ParcelizeFunctionProperty](ParcelizeFunctionProperty.md.html) |Function type properties are not parcelable | |[ExceptionMessage](ExceptionMessage.md.html) |Please provide a string for the `lazyMessage` parameter | |[MustUseNamedParams](MustUseNamedParams.md.html) |Calls to @MustUseNamedParams-annotated methods must name all parameters | +|[AvoidUsingNotNullOperator](AvoidUsingNotNullOperator.md.html) |Avoid using the !! operator in Kotlin | +|[DoNotCallViewToString](DoNotCallViewToString.md.html) |Do not use `View.toString()` | +|[InflationInItemDecoration](InflationInItemDecoration.md.html) |Avoid inflating a view to display text | (##) Including @@ -126,17 +129,17 @@ ``` // build.gradle.kts -lintChecks("com.slack.lint:slack-lint-checks:0.7.4") +lintChecks("com.slack.lint:slack-lint-checks:0.8.2") // build.gradle -lintChecks 'com.slack.lint:slack-lint-checks:0.7.4' +lintChecks 'com.slack.lint:slack-lint-checks:0.8.2' // build.gradle.kts with version catalogs: lintChecks(libs.slack.lint.checks) # libs.versions.toml [versions] -slack-lint-checks = "0.7.4" +slack-lint-checks = "0.8.2" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single @@ -148,7 +151,7 @@ } ``` -0.7.4 is the version this documentation was generated from; +0.8.2 is the version this documentation was generated from; there may be newer versions available. (##) Changes @@ -218,6 +221,8 @@ InjectWithScopeRequiredLoggedInUserProvider, InjectWithTypeMustImplementAnvilInjectable. * 0.7.2: Adds DoNotMockAnything. +* 0.8.1: Adds AvoidUsingNotNullOperator, DoNotCallViewToString, + InflationInItemDecoration. (##) Version Compatibility @@ -225,6 +230,9 @@ | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| +| 0.8.2|2024/10/14| 94| Yes| 8.7+| 8.7+| +| 0.8.1|2024/10/03| 94| Yes| 8.7+| 8.7+| +| 0.8.0|2024/10/02| 91| Yes| 8.7+| 8.7+| | 0.7.4|2024/05/21| 91| Yes| 8.0 and 8.1|8.0 and 8.1| | 0.7.3|2024/05/03| 91| Yes| 8.0 and 8.1|8.0 and 8.1| | 0.7.2|2024/05/02| 91| Yes| 8.0 and 8.1|8.0 and 8.1| diff --git a/docs/checks/index.md.html b/docs/checks/index.md.html index 4efdd02a..8321bfd7 100644 --- a/docs/checks/index.md.html +++ b/docs/checks/index.md.html @@ -25,7 +25,9 @@ - [AppCompatMethod: Using Wrong AppCompat Method](AppCompatMethod.md.html) - [AppCompatResource: Menu namespace](AppCompatResource.md.html) - [AppIndexingService: App Indexing Background Services](AppIndexingService.md.html) + - [AppLinkSplitToWebAndCustom: Android App links should only use http(s) schemes](AppLinkSplitToWebAndCustom.md.html) - [AppLinkUrlError: URI invalid](AppLinkUrlError.md.html) + - [AppLinkWarning: App Link warning](AppLinkWarning.md.html) - [AppLinksAutoVerify: App Links Auto Verification Failure](AppLinksAutoVerify.md.html) - [ApplySharedPref: Use `apply()` on `SharedPreferences`](ApplySharedPref.md.html) - [ArcAnimationSpecTypeIssue: ArcAnimationSpec is designed for 2D values. Particularly, for positional values such as Offset.](ArcAnimationSpecTypeIssue.md.html) @@ -37,6 +39,7 @@ - [AutoboxingStateCreation: `State` will autobox values assigned to this state. Use a specialized state type instead.](AutoboxingStateCreation.md.html) - [AutoboxingStateValueProperty: State access causes value to be autoboxed](AutoboxingStateValueProperty.md.html) - [Autofill: Use Autofill](Autofill.md.html) + - [AvoidUsingNotNullOperator: Avoid using the !! operator in Kotlin](AvoidUsingNotNullOperator.md.html) - [BackButton: Back button](BackButton.md.html) - [BadConfigurationProvider: Invalid WorkManager Configuration Provider](BadConfigurationProvider.md.html) - [BadHostnameVerifier: Insecure HostnameVerifier](BadHostnameVerifier.md.html) @@ -75,7 +78,6 @@ - [ComposableLambdaParameterPosition: Non-trailing primary composable lambda parameter](ComposableLambdaParameterPosition.md.html) - [ComposableNaming: Incorrect naming for @Composable functions](ComposableNaming.md.html) - [ComposableNavGraphInComposeScope: Building navigation graph in compose scope](ComposableNavGraphInComposeScope.md.html) - - [ComposeComposableModifier: Don't use @Composable builder functions for modifiers](ComposeComposableModifier.md.html) - [ComposeCompositionLocalGetter: CompositionLocals should not use getters](ComposeCompositionLocalGetter.md.html) - [ComposeCompositionLocalUsage: CompositionLocals are discouraged](ComposeCompositionLocalUsage.md.html) - [ComposeContentEmitterReturningValues: Composable functions should emit XOR return](ComposeContentEmitterReturningValues.md.html) @@ -102,6 +104,7 @@ - [ConstantLocale: Constant Locale](ConstantLocale.md.html) - [ConstraintLayoutToolsEditorAttribute: Flags tools:layout_editor xml properties](ConstraintLayoutToolsEditorAttribute.md.html) - [ContentDescription: Image without `contentDescription`](ContentDescription.md.html) + - [ContextCastToActivity: LocalContext should not be cast to Activity, use LocalActivity instead](ContextCastToActivity.md.html) - [ConvertToWebp: Convert to WebP](ConvertToWebp.md.html) - [CoroutineCreationDuringComposition: Calls to `async` or `launch` should happen inside a LaunchedEffect and not composition](CoroutineCreationDuringComposition.md.html) - [CredManMissingDal: Missing Digital Asset Link for Credential Manager](CredManMissingDal.md.html) @@ -140,6 +143,7 @@ - [DiscouragedApi: Using discouraged APIs](DiscouragedApi.md.html) - [DiscouragedPrivateApi: Using Discouraged Private API](DiscouragedPrivateApi.md.html) - [DoNotCallProviders: Dagger provider methods should not be called directly by user code](DoNotCallProviders.md.html) + - [DoNotCallViewToString: Do not use `View.toString()`](DoNotCallViewToString.md.html) - [DoNotExposeEitherNetInRepositories: Repository APIs should not expose EitherNet types directly](DoNotExposeEitherNetInRepositories.md.html) - [DoNotMock: ](DoNotMock.md.html) - [DoNotMockAnything: Do not add new mocks](DoNotMockAnything.md.html) @@ -196,8 +200,8 @@ - [FragmentBackPressedCallback: Use getViewLifecycleOwner() as the LifecycleOwner instead of a Fragment instance](FragmentBackPressedCallback.md.html) - [FragmentConstructorInjection: Fragment dependencies should be injected using constructor injections only](FragmentConstructorInjection.md.html) - [FragmentFieldInjection: Fragment dependencies should be injected using the Fragment's constructor](FragmentFieldInjection.md.html) - - [FragmentGradleConfiguration: Include the fragment-testing library using the debugImplementation configuration](FragmentGradleConfiguration.md.html) (from androidx.fragment:fragment-testing:1.8.3) - - [FragmentGradleConfiguration: Include the fragment-testing-manifest library using the debugImplementation configuration](FragmentGradleConfiguration.md.html) (from androidx.fragment:fragment-testing-manifest:1.8.3) + - [FragmentGradleConfiguration: Include the fragment-testing library using the debugImplementation configuration](FragmentGradleConfiguration.md.html) (from androidx.fragment:fragment-testing:1.8.5) + - [FragmentGradleConfiguration: Include the fragment-testing-manifest library using the debugImplementation configuration](FragmentGradleConfiguration-2.md.html) (from androidx.fragment:fragment-testing-manifest:1.8.5) - [FragmentLiveDataObserve: Use getViewLifecycleOwner() as the LifecycleOwner instead of a Fragment instance when observing a LiveData object](FragmentLiveDataObserve.md.html) - [FragmentTagUsage: Use FragmentContainerView instead of the tag](FragmentTagUsage.md.html) - [FrequentlyChangedStateReadInComposition: Frequently changing state should not be directly read in composable function](FrequentlyChangedStateReadInComposition.md.html) @@ -252,8 +256,8 @@ - [ImpliedTouchscreenHardware: Touchscreen not optional](ImpliedTouchscreenHardware.md.html) - [InOrMmUsage: Using `mm` or `in` dimensions](InOrMmUsage.md.html) - [IncludeLayoutParam: Ignored layout params on include](IncludeLayoutParam.md.html) - - [InclusiveNaming: Use inclusive naming](InclusiveNaming.md.html) (from com.slack.lint:slack-lint-checks:0.7.4) - - [InclusiveNaming: Use inclusive naming](InclusiveNaming.md.html) (from com.slack.lint:slack-lint-checks:0.7.4) + - [InclusiveNaming: Use inclusive naming](InclusiveNaming.md.html) (from com.slack.lint:slack-lint-checks:0.8.2) + - [InclusiveNaming: Use inclusive naming](InclusiveNaming.md.html) (from com.slack.lint:slack-lint-checks:0.8.2) - [IncompatibleMediaBrowserServiceCompatVersion: Obsolete version of MediaBrowserServiceCompat](IncompatibleMediaBrowserServiceCompatVersion.md.html) - [InconsistentArrays: Inconsistencies in array element counts](InconsistentArrays.md.html) - [InconsistentLayout: Inconsistent Layouts](InconsistentLayout.md.html) @@ -262,6 +266,7 @@ - [IncorrectReferencesDeclaration: `createRefsFor(vararg ids: Any)` should have at least one argument and match assigned variables](IncorrectReferencesDeclaration.md.html) - [InefficientWeight: Inefficient layout weight](InefficientWeight.md.html) - [InflateParams: Layout Inflation without a Parent](InflateParams.md.html) + - [InflationInItemDecoration: Avoid inflating a view to display text](InflationInItemDecoration.md.html) - [InjectInJava: Only Kotlin classes should be injected in order for Anvil to work](InjectInJava.md.html) - [InlinedApi: Using inlined constants on older versions](InlinedApi.md.html) - [InnerclassSeparator: Inner classes should use `$` rather than `.`](InnerclassSeparator.md.html) @@ -364,6 +369,9 @@ - [MissingId: Fragments should specify an `id` or `tag`](MissingId.md.html) - [MissingInflatedId: ID not found in inflated resource](MissingInflatedId.md.html) - [MissingIntentFilterForMediaSearch: Missing MEDIA_PLAY_FROM_SEARCH intent-filter](MissingIntentFilterForMediaSearch.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation.md.html) (from androidx.navigation:navigation-compose:2.9.0-alpha03) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation-2.md.html) (from androidx.navigation:navigation-runtime:2.9.0-alpha03) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation-3.md.html) (from androidx.navigation:navigation-common:2.9.0-alpha03) - [MissingLeanbackLauncher: Missing Leanback Launcher Intent Filter](MissingLeanbackLauncher.md.html) - [MissingLeanbackSupport: Missing Leanback Support](MissingLeanbackSupport.md.html) - [MissingMediaBrowserServiceIntentFilter: Missing MediaBrowserService intent-filter](MissingMediaBrowserServiceIntentFilter.md.html) @@ -373,6 +381,9 @@ - [MissingQuantity: Missing quantity translation](MissingQuantity.md.html) - [MissingResourceImportAlias: Missing import alias for R class](MissingResourceImportAlias.md.html) - [MissingScrollbars: Scroll views should declare a scrollbar](MissingScrollbars.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation.md.html) (from androidx.navigation:navigation-compose:2.9.0-alpha03) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation-2.md.html) (from androidx.navigation:navigation-runtime:2.9.0-alpha03) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation-3.md.html) (from androidx.navigation:navigation-common:2.9.0-alpha03) - [MissingSuperCall: Missing Super Call](MissingSuperCall.md.html) - [MissingTranslation: Incomplete translation](MissingTranslation.md.html) - [MissingTvBanner: TV Missing Banner](MissingTvBanner.md.html) @@ -462,8 +473,8 @@ - [NotificationPermission: Notifications Without Permission](NotificationPermission.md.html) - [NotificationTrampoline: Notification Trampolines](NotificationTrampoline.md.html) - [NotifyDataSetChanged: Invalidating All RecyclerView Data](NotifyDataSetChanged.md.html) - - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData.md.html) (from androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha03) - - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData.md.html) (from androidx.lifecycle:lifecycle-livedata-core-ktx:2.8.0-alpha01) + - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData.md.html) (from androidx.lifecycle:lifecycle-livedata-core:2.9.0-alpha07) + - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData-2.md.html) (from androidx.lifecycle:lifecycle-livedata-core-ktx:2.8.0-alpha01) - [ObjectAnimatorBinding: Incorrect ObjectAnimator Property](ObjectAnimatorBinding.md.html) - [ObsoleteLayoutParam: Obsolete layout params](ObsoleteLayoutParam.md.html) - [ObsoleteSdkInt: Obsolete SDK_INT Version Check](ObsoleteSdkInt.md.html) @@ -496,15 +507,9 @@ - [ProguardSplit: Proguard.cfg file contains generic Android rules](ProguardSplit.md.html) - [PropertyEscape: Incorrect property escapes](PropertyEscape.md.html) - [ProtectedPermissions: Using system app permission](ProtectedPermissions.md.html) - - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) (from androidx.wear.protolayout:protolayout-expression:1.2.0) - - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) (from androidx.wear.protolayout:protolayout-material:1.2.0) - - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) (from androidx.wear.protolayout:protolayout:1.2.0) - - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) (from androidx.wear.protolayout:protolayout-expression:1.2.0) - - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) (from androidx.wear.protolayout:protolayout-material:1.2.0) - - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) (from androidx.wear.protolayout:protolayout:1.2.0) - - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) (from androidx.wear.protolayout:protolayout-expression:1.2.0) - - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) (from androidx.wear.protolayout:protolayout-material:1.2.0) - - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) (from androidx.wear.protolayout:protolayout:1.2.0) + - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) + - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) + - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) - [ProviderReadPermissionOnly: Provider with readPermission only and implemented write APIs](ProviderReadPermissionOnly.md.html) - [ProvidesMustNotBeAbstract: @Provides functions cannot be abstract](ProvidesMustNotBeAbstract.md.html) - [ProxyPassword: Proxy Password in Cleartext](ProxyPassword.md.html) @@ -529,8 +534,8 @@ - [RememberSaveableSaverParameter: `Saver` objects should be passed to the saver parameter, not the vararg `inputs` parameter](RememberSaveableSaverParameter.md.html) - [RemoteViewLayout: Unsupported View in RemoteView](RemoteViewLayout.md.html) - [RemoveWorkManagerInitializer: Remove androidx.work.WorkManagerInitializer from your AndroidManifest.xml when using on-demand initialization](RemoveWorkManagerInitializer.md.html) - - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage.md.html) (from androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03) - - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage.md.html) (from androidx.lifecycle:lifecycle-runtime-ktx:2.8.0-alpha01) + - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage.md.html) (from androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07) + - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage-2.md.html) (from androidx.lifecycle:lifecycle-runtime-ktx:2.8.0-alpha01) - [ReportShortcutUsage: Report shortcut usage](ReportShortcutUsage.md.html) - [RequiredSize: Missing `layout_width` or `layout_height` attributes](RequiredSize.md.html) - [RequiresFeature: Requires Feature](RequiresFeature.md.html) @@ -588,6 +593,7 @@ - [SimilarGradleDependency: Multiple Versions Gradle Dependency](SimilarGradleDependency.md.html) - [SimpleDateFormat: Implied locale in date format](SimpleDateFormat.md.html) - [Slices: Slices](Slices.md.html) + - [SlotReused: Slots should be invoked in at most one place](SlotReused.md.html) - [SmallSp: Text size is too small](SmallSp.md.html) - [SoonBlockedPrivateApi: Using Soon-to-Be Blocked Private API](SoonBlockedPrivateApi.md.html) - [SourceLockedOrientationActivity: Incompatible setRequestedOrientation value](SourceLockedOrientationActivity.md.html) @@ -669,15 +675,15 @@ - [UnsafeDynamicallyLoadedCode: `load` used to dynamically load code](UnsafeDynamicallyLoadedCode.md.html) - [UnsafeImplicitIntentLaunch: Implicit intent matches an internal non-exported component](UnsafeImplicitIntentLaunch.md.html) - [UnsafeIntentLaunch: Launched Unsafe Intent](UnsafeIntentLaunch.md.html) - - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage.md.html) (from androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha03) - - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage.md.html) (from androidx.lifecycle:lifecycle-runtime-ktx:2.8.0-alpha01) + - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage.md.html) (from androidx.lifecycle:lifecycle-runtime-android:2.9.0-alpha07) + - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage-2.md.html) (from androidx.lifecycle:lifecycle-runtime-ktx:2.8.0-alpha01) - [UnsafeNativeCodeLocation: Native code outside library directory](UnsafeNativeCodeLocation.md.html) - [UnsafeOptInUsageError: Unsafe opt-in usage intended to be error-level severity](UnsafeOptInUsageError.md.html) - [UnsafeOptInUsageWarning: Unsafe opt-in usage intended to be warning-level severity](UnsafeOptInUsageWarning.md.html) - [UnsafeProtectedBroadcastReceiver: Unsafe Protected `BroadcastReceiver`](UnsafeProtectedBroadcastReceiver.md.html) - [UnsafeRepeatOnLifecycleDetector: RepeatOnLifecycle should be used with viewLifecycleOwner in Fragments](UnsafeRepeatOnLifecycleDetector.md.html) + - [UnsanitizedContentProviderFilename: Trusting ContentProvider filenames without any sanitization](UnsanitizedContentProviderFilename.md.html) - [UnsanitizedFilenameFromContentProvider: Trusting ContentProvider filenames without any sanitization](UnsanitizedFilenameFromContentProvider.md.html) - - [UnsanitizedFilenameFromContentProvider: Trusting ContentProvider filenames without any sanitization](UnsanitizedFilenameFromContentProvider.md.html) (from com.android.security.lint:lint:1.0.2) - [UnspecifiedImmutableFlag: Missing `PendingIntent` mutability flag](UnspecifiedImmutableFlag.md.html) - [UnspecifiedRegisterReceiverFlag: Missing `registerReceiver()` exported flag](UnspecifiedRegisterReceiverFlag.md.html) - [UnsupportedChromeOsCameraSystemFeature: Looking for Rear Camera only feature](UnsupportedChromeOsCameraSystemFeature.md.html) @@ -783,9 +789,10 @@ - [WrongRegion: Suspicious Language/Region Combination](WrongRegion.md.html) - [WrongRequiresOptIn: Experimental annotations defined in Kotlin must use kotlin.RequiresOptIn](WrongRequiresOptIn.md.html) - [WrongResourceImportAlias: Wrong import alias for this R class](WrongResourceImportAlias.md.html) - - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) (from androidx.navigation:navigation-compose:2.8.1) - - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) (from androidx.navigation:navigation-runtime:2.8.1) - - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) (from androidx.navigation:navigation-common:2.8.1) + - [WrongSdkInt: Mismatched SDK_INT or SDK_INT_FULL](WrongSdkInt.md.html) + - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) (from androidx.navigation:navigation-compose:2.9.0-alpha03) + - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType-2.md.html) (from androidx.navigation:navigation-runtime:2.9.0-alpha03) + - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType-3.md.html) (from androidx.navigation:navigation-common:2.9.0-alpha03) - [WrongTestMethodName: Flags test methods that start with test](WrongTestMethodName.md.html) - [WrongThread: Wrong Thread](WrongThread.md.html) - [WrongThreadInterprocedural: Wrong Thread (Interprocedural)](WrongThreadInterprocedural.md.html) diff --git a/docs/checks/libraries.md.html b/docs/checks/libraries.md.html index 124ae266..8c34c6d9 100644 --- a/docs/checks/libraries.md.html +++ b/docs/checks/libraries.md.html @@ -12,12 +12,12 @@ * [com.vanniktech:lint-rules-rxjava2](com_vanniktech_lint-rules-rxjava2.md.html) (7 checks) * [com.vanniktech:lint-rules-kotlin](com_vanniktech_lint-rules-kotlin.md.html) (1 checks) * [com.vanniktech:lint-rules-android](com_vanniktech_lint-rules-android.md.html) (41 checks) -* [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) (91 checks) +* [com.slack.lint:slack-lint-checks](com_slack_lint_slack-lint-checks.md.html) (94 checks) * [com.slack.lint.compose:compose-lint-checks](com_slack_lint_compose_compose-lint-checks.md.html) (21 checks) Android archive libraries which also contain bundled lint checks: -* [androidx.activity:activity-compose](androidx_activity_activity-compose.md.html) (2 checks) +* [androidx.activity:activity-compose](androidx_activity_activity-compose.md.html) (3 checks) * [androidx.activity:activity](androidx_activity_activity.md.html) (2 checks) * [androidx.compose.ui:ui-test-manifest](androidx_compose_ui_ui-test-manifest.md.html) (1 checks) * [androidx.compose.ui:ui-android](androidx_compose_ui_ui-android.md.html) (10 checks) @@ -36,9 +36,9 @@ * [androidx.lifecycle:lifecycle-runtime-android](androidx_lifecycle_lifecycle-runtime-android.md.html) (2 checks) * [androidx.lifecycle:lifecycle-runtime-ktx](androidx_lifecycle_lifecycle-runtime-ktx.md.html) (2 checks) * [androidx.lifecycle:lifecycle-viewmodel-compose-android](androidx_lifecycle_lifecycle-viewmodel-compose-android.md.html) (1 checks) -* [androidx.navigation:navigation-compose](androidx_navigation_navigation-compose.md.html) (4 checks) -* [androidx.navigation:navigation-runtime](androidx_navigation_navigation-runtime.md.html) (3 checks) -* [androidx.navigation:navigation-common](androidx_navigation_navigation-common.md.html) (2 checks) +* [androidx.navigation:navigation-compose](androidx_navigation_navigation-compose.md.html) (6 checks) +* [androidx.navigation:navigation-runtime](androidx_navigation_navigation-runtime.md.html) (5 checks) +* [androidx.navigation:navigation-common](androidx_navigation_navigation-common.md.html) (4 checks) * [androidx.annotation:annotation-experimental](androidx_annotation_annotation-experimental.md.html) (4 checks) * [androidx.fragment:fragment-testing](androidx_fragment_fragment-testing.md.html) (1 checks) * [androidx.fragment:fragment-testing-manifest](androidx_fragment_fragment-testing-manifest.md.html) (1 checks) @@ -47,8 +47,6 @@ * [androidx.work:work-runtime](androidx_work_work-runtime.md.html) (9 checks) * [androidx.appcompat:appcompat](androidx_appcompat_appcompat.md.html) (10 checks) * [androidx.startup:startup-runtime](androidx_startup_startup-runtime.md.html) (2 checks) -* [androidx.wear.protolayout:protolayout-expression](androidx_wear_protolayout_protolayout-expression.md.html) (3 checks) -* [androidx.wear.protolayout:protolayout-material](androidx_wear_protolayout_protolayout-material.md.html) (3 checks) * [androidx.wear.protolayout:protolayout](androidx_wear_protolayout_protolayout.md.html) (3 checks) * [androidx.constraintlayout:constraintlayout-compose](androidx_constraintlayout_constraintlayout-compose.md.html) (3 checks) * [com.jakewharton.timber:timber](com_jakewharton_timber_timber.md.html) (8 checks) diff --git a/docs/checks/severity.md.html b/docs/checks/severity.md.html index 3e8b5d9d..6efb100e 100644 --- a/docs/checks/severity.md.html +++ b/docs/checks/severity.md.html @@ -36,7 +36,7 @@ - [NfcTechWhitespace: Whitespace in NFC tech lists](NfcTechWhitespace.md.html) - [NotSibling: Invalid Constraints](NotSibling.md.html) - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData.md.html) - - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData.md.html) + - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData-2.md.html) - [PackagedPrivateKey: Packaged private key](PackagedPrivateKey.md.html) - [Proguard: Using obsolete ProGuard configuration](Proguard.md.html) - [ReferenceType: Incorrect reference types](ReferenceType.md.html) @@ -60,11 +60,12 @@ - [WrongFolder: Resource file in the wrong `res` folder](WrongFolder.md.html) - [WrongManifestParent: Wrong manifest parent](WrongManifestParent.md.html) -* Error (305) +* Error (310) - [AccidentalOctal: Accidental Octal](AccidentalOctal.md.html) - [AppCompatCustomView: Appcompat Custom Widgets](AppCompatCustomView.md.html) - [AppCompatResource: Menu namespace](AppCompatResource.md.html) + - [AppLinkSplitToWebAndCustom: Android App links should only use http(s) schemes](AppLinkSplitToWebAndCustom.md.html) - [AppLinkUrlError: URI invalid](AppLinkUrlError.md.html) - [AppLinksAutoVerify: App Links Auto Verification Failure](AppLinksAutoVerify.md.html) - [AutoDispose: Missing Disposable handling: Apply AutoDispose or cache the Disposable instance manually and enable lenient mode](AutoDispose.md.html) @@ -82,7 +83,6 @@ - [CoarseFineLocation: Cannot use `ACCESS_FINE_LOCATION` without `ACCESS_COARSE_LOCATION`](CoarseFineLocation.md.html) - [ComposableDestinationInComposeScope: Building composable destination in compose scope](ComposableDestinationInComposeScope.md.html) - [ComposableNavGraphInComposeScope: Building navigation graph in compose scope](ComposableNavGraphInComposeScope.md.html) - - [ComposeComposableModifier: Don't use @Composable builder functions for modifiers](ComposeComposableModifier.md.html) - [ComposeCompositionLocalGetter: CompositionLocals should not use getters](ComposeCompositionLocalGetter.md.html) - [ComposeContentEmitterReturningValues: Composable functions should emit XOR return](ComposeContentEmitterReturningValues.md.html) - [ComposeM2Api: Using a Compose M2 API is not recommended](ComposeM2Api.md.html) @@ -102,6 +102,7 @@ - [ComposeViewModelInjection: Implicit dependencies of composables should be made explicit](ComposeViewModelInjection.md.html) - [ConflictingOnColor: Background colors with the same value should have the same 'on' color](ConflictingOnColor.md.html) - [ConstantContentStateKeyInItemsCall: Composables within an LazyList `items` call should have unique content state keys](ConstantContentStateKeyInItemsCall.md.html) + - [ContextCastToActivity: LocalContext should not be cast to Activity, use LocalActivity instead](ContextCastToActivity.md.html) - [CoroutineCreationDuringComposition: Calls to `async` or `launch` should happen inside a LaunchedEffect and not composition](CoroutineCreationDuringComposition.md.html) - [CredManMissingDal: Missing Digital Asset Link for Credential Manager](CredManMissingDal.md.html) - [DalvikOverride: Method considered overridden by Dalvik](DalvikOverride.md.html) @@ -111,6 +112,7 @@ - [DenyListedBlockingApi: Deny-listed API](DenyListedBlockingApi.md.html) - [DiffUtilEquals: Suspicious DiffUtil Equality](DiffUtilEquals.md.html) - [DoNotCallProviders: Dagger provider methods should not be called directly by user code](DoNotCallProviders.md.html) + - [DoNotCallViewToString: Do not use `View.toString()`](DoNotCallViewToString.md.html) - [DoNotExposeEitherNetInRepositories: Repository APIs should not expose EitherNet types directly](DoNotExposeEitherNetInRepositories.md.html) - [DoNotMock: ](DoNotMock.md.html) - [DoNotMockAnything: Do not add new mocks](DoNotMockAnything.md.html) @@ -139,7 +141,7 @@ - [FragmentConstructorInjection: Fragment dependencies should be injected using constructor injections only](FragmentConstructorInjection.md.html) - [FragmentFieldInjection: Fragment dependencies should be injected using the Fragment's constructor](FragmentFieldInjection.md.html) - [FragmentGradleConfiguration: Include the fragment-testing library using the debugImplementation configuration](FragmentGradleConfiguration.md.html) - - [FragmentGradleConfiguration: Include the fragment-testing-manifest library using the debugImplementation configuration](FragmentGradleConfiguration.md.html) + - [FragmentGradleConfiguration: Include the fragment-testing-manifest library using the debugImplementation configuration](FragmentGradleConfiguration-2.md.html) - [FragmentLiveDataObserve: Use getViewLifecycleOwner() as the LifecycleOwner instead of a Fragment instance when observing a LiveData object](FragmentLiveDataObserve.md.html) - [FullyQualifiedResource: Resources should use an import alias instead of being fully qualified](FullyQualifiedResource.md.html) - [GetContentDescriptionOverride: Overriding `getContentDescription()` on a View](GetContentDescriptionOverride.md.html) @@ -202,6 +204,9 @@ - [MissingPrefix: Missing Android XML namespace](MissingPrefix.md.html) - [MissingQuantity: Missing quantity translation](MissingQuantity.md.html) - [MissingResourceImportAlias: Missing import alias for R class](MissingResourceImportAlias.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation-2.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation-3.md.html) - [MissingSuperCall: Missing Super Call](MissingSuperCall.md.html) - [MissingTranslation: Incomplete translation](MissingTranslation.md.html) - [MissingTvBanner: TV Missing Banner](MissingTvBanner.md.html) @@ -267,8 +272,6 @@ - [PropertyEscape: Incorrect property escapes](PropertyEscape.md.html) - [ProtectedPermissions: Using system app permission](ProtectedPermissions.md.html) - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) - - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) - - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) - [ProvidesMustNotBeAbstract: @Provides functions cannot be abstract](ProvidesMustNotBeAbstract.md.html) - [QueryAllPackagesPermission: Using the QUERY_ALL_PACKAGES permission](QueryAllPackagesPermission.md.html) - [Range: Outside Range](Range.md.html) @@ -280,7 +283,7 @@ - [RememberSaveableSaverParameter: `Saver` objects should be passed to the saver parameter, not the vararg `inputs` parameter](RememberSaveableSaverParameter.md.html) - [RemoteViewLayout: Unsupported View in RemoteView](RemoteViewLayout.md.html) - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage.md.html) - - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage.md.html) + - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage-2.md.html) - [RequiredSize: Missing `layout_width` or `layout_height` attributes](RequiredSize.md.html) - [ReservedSystemPermission: Permission name is a reserved Android permission](ReservedSystemPermission.md.html) - [ResourceAsColor: Should pass resolved color instead of resource id](ResourceAsColor.md.html) @@ -295,6 +298,7 @@ - [ScheduleExactAlarm: Scheduling Exact Alarms Without Required Permission](ScheduleExactAlarm.md.html) - [SerializableUsage: Don't use Serializable](SerializableUsage.md.html) - [ServiceCast: Wrong system service casts](ServiceCast.md.html) + - [SlotReused: Slots should be invoked in at most one place](SlotReused.md.html) - [SoonBlockedPrivateApi: Using Soon-to-Be Blocked Private API](SoonBlockedPrivateApi.md.html) - [SpanMarkPointMissingMask: Check that Span flags use the bitwise mask SPAN_POINT_MARK_MASK when being compared to](SpanMarkPointMissingMask.md.html) - [StartActivityAndCollapseDeprecated: TileService.startActivityAndCollapse(Intent) is deprecated](StartActivityAndCollapseDeprecated.md.html) @@ -321,7 +325,7 @@ - [UnrememberedMutableState: Creating a state object during composition without using `remember`](UnrememberedMutableState.md.html) - [UnsafeImplicitIntentLaunch: Implicit intent matches an internal non-exported component](UnsafeImplicitIntentLaunch.md.html) - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage.md.html) - - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage.md.html) + - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage-2.md.html) - [UnsafeOptInUsageError: Unsafe opt-in usage intended to be error-level severity](UnsafeOptInUsageError.md.html) - [UnsafeRepeatOnLifecycleDetector: RepeatOnLifecycle should be used with viewLifecycleOwner in Fragments](UnsafeRepeatOnLifecycleDetector.md.html) - [UnspecifiedRegisterReceiverFlag: Missing `registerReceiver()` exported flag](UnspecifiedRegisterReceiverFlag.md.html) @@ -360,15 +364,16 @@ - [WrongNavigateRouteType: Navigation route should be an object literal or a destination class instance with arguments](WrongNavigateRouteType.md.html) - [WrongRequiresOptIn: Experimental annotations defined in Kotlin must use kotlin.RequiresOptIn](WrongRequiresOptIn.md.html) - [WrongResourceImportAlias: Wrong import alias for this R class](WrongResourceImportAlias.md.html) + - [WrongSdkInt: Mismatched SDK_INT or SDK_INT_FULL](WrongSdkInt.md.html) - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) - - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) - - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) + - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType-2.md.html) + - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType-3.md.html) - [WrongThread: Wrong Thread](WrongThread.md.html) - [WrongThreadInterprocedural: Wrong Thread (Interprocedural)](WrongThreadInterprocedural.md.html) - [WrongViewCast: Mismatched view type](WrongViewCast.md.html) - [XmlEscapeNeeded: Missing XML Escape](XmlEscapeNeeded.md.html) -* Warning (422) +* Warning (424) - [AcceptsUserCertificates: Allowing User Certificates](AcceptsUserCertificates.md.html) - [AccessibilityFocus: Forcing accessibility focus](AccessibilityFocus.md.html) @@ -388,6 +393,7 @@ - [AppBundleLocaleChanges: App Bundle handling of runtime locale changes](AppBundleLocaleChanges.md.html) - [AppCompatMethod: Using Wrong AppCompat Method](AppCompatMethod.md.html) - [AppIndexingService: App Indexing Background Services](AppIndexingService.md.html) + - [AppLinkWarning: App Link warning](AppLinkWarning.md.html) - [ApplySharedPref: Use `apply()` on `SharedPreferences`](ApplySharedPref.md.html) - [ArgInFormattedQuantityStringRes: Count value in formatted string resource](ArgInFormattedQuantityStringRes.md.html) - [AssertionSideEffect: Assertions with Side Effects](AssertionSideEffect.md.html) @@ -395,6 +401,7 @@ - [AuthLeak: Code might contain an auth leak](AuthLeak.md.html) - [AutoboxingStateValueProperty: State access causes value to be autoboxed](AutoboxingStateValueProperty.md.html) - [Autofill: Use Autofill](Autofill.md.html) + - [AvoidUsingNotNullOperator: Avoid using the !! operator in Kotlin](AvoidUsingNotNullOperator.md.html) - [BackButton: Back button](BackButton.md.html) - [BadHostnameVerifier: Insecure HostnameVerifier](BadHostnameVerifier.md.html) - [BadPeriodicWorkRequestEnqueue: Use `enqueueUniquePeriodicWork()` instead of `enqueue()`](BadPeriodicWorkRequestEnqueue.md.html) @@ -516,6 +523,7 @@ - [IncorrectMatchParentUsage: Prefer using `Dimension.percent(1f)` when defining custom constraints](IncorrectMatchParentUsage.md.html) - [InefficientWeight: Inefficient layout weight](InefficientWeight.md.html) - [InflateParams: Layout Inflation without a Parent](InflateParams.md.html) + - [InflationInItemDecoration: Avoid inflating a view to display text](InflationInItemDecoration.md.html) - [InlinedApi: Using inlined constants on older versions](InlinedApi.md.html) - [InnerclassSeparator: Inner classes should use `$` rather than `.`](InnerclassSeparator.md.html) - [InsecureBaseConfiguration: Insecure Base Configuration](InsecureBaseConfiguration.md.html) @@ -572,6 +580,9 @@ - [MissingColorAlphaChannel: Missing Color alpha channel](MissingColorAlphaChannel.md.html) - [MissingFirebaseInstanceTokenRefresh: Missing Firebase Messaging Callback](MissingFirebaseInstanceTokenRefresh.md.html) - [MissingId: Fragments should specify an `id` or `tag`](MissingId.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation-2.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation-3.md.html) - [MissingScrollbars: Scroll views should declare a scrollbar](MissingScrollbars.md.html) - [MissingVersion: Missing application name/version](MissingVersion.md.html) - [MissingXmlHeader: Flags xml files that don't have a header](MissingXmlHeader.md.html) @@ -619,10 +630,6 @@ - [PrivateResource: Using private resources](PrivateResource.md.html) - [ProguardSplit: Proguard.cfg file contains generic Android rules](ProguardSplit.md.html) - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) - - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) - - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) - - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) - - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) - [ProviderReadPermissionOnly: Provider with readPermission only and implemented write APIs](ProviderReadPermissionOnly.md.html) - [ProxyPassword: Proxy Password in Cleartext](ProxyPassword.md.html) @@ -727,7 +734,7 @@ - [UnsafeNativeCodeLocation: Native code outside library directory](UnsafeNativeCodeLocation.md.html) - [UnsafeOptInUsageWarning: Unsafe opt-in usage intended to be warning-level severity](UnsafeOptInUsageWarning.md.html) - [UnsafeProtectedBroadcastReceiver: Unsafe Protected `BroadcastReceiver`](UnsafeProtectedBroadcastReceiver.md.html) - - [UnsanitizedFilenameFromContentProvider: Trusting ContentProvider filenames without any sanitization](UnsanitizedFilenameFromContentProvider.md.html) + - [UnsanitizedContentProviderFilename: Trusting ContentProvider filenames without any sanitization](UnsanitizedContentProviderFilename.md.html) - [UnsanitizedFilenameFromContentProvider: Trusting ContentProvider filenames without any sanitization](UnsanitizedFilenameFromContentProvider.md.html) - [UnsupportedChromeOsCameraSystemFeature: Looking for Rear Camera only feature](UnsupportedChromeOsCameraSystemFeature.md.html) - [Untranslatable: Translated Untranslatable](Untranslatable.md.html) diff --git a/docs/checks/vendors.md.html b/docs/checks/vendors.md.html index c7af9b8a..fd2c72c2 100644 --- a/docs/checks/vendors.md.html +++ b/docs/checks/vendors.md.html @@ -3,7 +3,7 @@ Order: [Alphabetical](index.md.html) | [By category](categories.md.html) | By vendor | [By severity](severity.md.html) | [By year](year.md.html) | [Libraries](libraries.md.html) -* Built In (477) +* Built In (480) - [AaptCrash: Potential AAPT crash](AaptCrash.md.html) - [AcceptsUserCertificates: Allowing User Certificates](AcceptsUserCertificates.md.html) @@ -26,7 +26,9 @@ - [AppCompatMethod: Using Wrong AppCompat Method](AppCompatMethod.md.html) - [AppCompatResource: Menu namespace](AppCompatResource.md.html) - [AppIndexingService: App Indexing Background Services](AppIndexingService.md.html) + - [AppLinkSplitToWebAndCustom: Android App links should only use http(s) schemes](AppLinkSplitToWebAndCustom.md.html) - [AppLinkUrlError: URI invalid](AppLinkUrlError.md.html) + - [AppLinkWarning: App Link warning](AppLinkWarning.md.html) - [AppLinksAutoVerify: App Links Auto Verification Failure](AppLinksAutoVerify.md.html) - [ApplySharedPref: Use `apply()` on `SharedPreferences`](ApplySharedPref.md.html) - [AssertionSideEffect: Assertions with Side Effects](AssertionSideEffect.md.html) @@ -478,6 +480,7 @@ - [WrongFolder: Resource file in the wrong `res` folder](WrongFolder.md.html) - [WrongManifestParent: Wrong manifest parent](WrongManifestParent.md.html) - [WrongRegion: Suspicious Language/Region Combination](WrongRegion.md.html) + - [WrongSdkInt: Mismatched SDK_INT or SDK_INT_FULL](WrongSdkInt.md.html) - [WrongThread: Wrong Thread](WrongThread.md.html) - [WrongThreadInterprocedural: Wrong Thread (Interprocedural)](WrongThreadInterprocedural.md.html) - [WrongViewCast: Mismatched view type](WrongViewCast.md.html) @@ -536,17 +539,17 @@ * Android Open Source Project (androidx.fragment.testing.manifest) (1) - - [FragmentGradleConfiguration: Include the fragment-testing-manifest library using the debugImplementation configuration](FragmentGradleConfiguration.md.html) + - [FragmentGradleConfiguration: Include the fragment-testing-manifest library using the debugImplementation configuration](FragmentGradleConfiguration-2.md.html) * Android Open Source Project (androidx.lifecycle) (8) - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData.md.html) - - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData.md.html) - - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage.md.html) + - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData-2.md.html) - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage.md.html) + - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage-2.md.html) - [TestLifecycleOwnerInCoroutine: Use the suspending function setCurrentState(), rather than directly accessing the currentState property](TestLifecycleOwnerInCoroutine.md.html) - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage.md.html) - - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage.md.html) + - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage-2.md.html) - [ViewModelConstructorInComposable: Constructing a view model in a composable](ViewModelConstructorInComposable.md.html) * Android Open Source Project (androidx.lint:lint-gradle) (6) @@ -558,16 +561,20 @@ - [WithPluginClasspathUsage: Flags usage of GradleRunner#withPluginClasspath](WithPluginClasspathUsage.md.html) - [WithTypeWithoutConfigureEach: Flags usage of withType with a closure instead of configureEach](WithTypeWithoutConfigureEach.md.html) -* Android Open Source Project (androidx.navigation.common) (2) +* Android Open Source Project (androidx.navigation.common) (4) - [EmptyNavDeepLink: NavDeepLink must define an uri, action, and/or mimetype to be valid](EmptyNavDeepLink.md.html) - - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation-3.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation-3.md.html) + - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType-3.md.html) -* Android Open Source Project (androidx.navigation.runtime) (3) +* Android Open Source Project (androidx.navigation.runtime) (5) - [DeepLinkInActivityDestination: A should not be attached to an destination](DeepLinkInActivityDestination.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation-2.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation-2.md.html) - [WrongNavigateRouteType: Navigation route should be an object literal or a destination class instance with arguments](WrongNavigateRouteType.md.html) - - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) + - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType-2.md.html) * Android Open Source Project (androidx.recyclerview) (1) @@ -578,17 +585,11 @@ - [EnsureInitializerMetadata: Every Initializer needs to be accompanied by a corresponding entry in the AndroidManifest.xml file](EnsureInitializerMetadata.md.html) - [EnsureInitializerNoArgConstr: Missing Initializer no-arg constructor](EnsureInitializerNoArgConstr.md.html) -* Android Open Source Project (androidx.wear.protolayout) (9) +* Android Open Source Project (androidx.wear.protolayout) (3) - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) - - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) - - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) - - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) - - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) - - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) - - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) * Android Open Source Project (androidx.work) (9) @@ -626,7 +627,7 @@ - [UnintendedExposedUrl: Application may have a debugging or development URL publicly exposed](UnintendedExposedUrl.md.html) - [UnintendedPrivateIpAddress: Application may have a private IP address publicly exposed](UnintendedPrivateIpAddress.md.html) - [UnsafeCryptoAlgorithmUsage: Application uses unsafe cipher modes or paddings with cryptographic algorithms](UnsafeCryptoAlgorithmUsage.md.html) - - [UnsanitizedFilenameFromContentProvider: Trusting ContentProvider filenames without any sanitization](UnsanitizedFilenameFromContentProvider.md.html) + - [UnsanitizedContentProviderFilename: Trusting ContentProvider filenames without any sanitization](UnsanitizedContentProviderFilename.md.html) - [VulnerableCryptoAlgorithm: Application uses vulnerable cryptography algorithms](VulnerableCryptoAlgorithm.md.html) - [WeakPrng: Application uses non-cryptographically secure pseudorandom number generators](WeakPrng.md.html) @@ -641,8 +642,9 @@ - [TimberExceptionLogging: Exception Logging](TimberExceptionLogging.md.html) - [TimberTagLength: Too Long Log Tags](TimberTagLength.md.html) -* Jetpack Activity Compose (androidx.activity.compose) (2) +* Jetpack Activity Compose (androidx.activity.compose) (3) + - [ContextCastToActivity: LocalContext should not be cast to Activity, use LocalActivity instead](ContextCastToActivity.md.html) - [LaunchDuringComposition: Calls to `launch` should happen inside of a SideEffect and not during composition](LaunchDuringComposition.md.html) - [NoCollectCallFound: You must call collect on the given progress flow when using PredictiveBackHandler](NoCollectCallFound.md.html) @@ -720,16 +722,17 @@ - [InvalidLanguageTagDelimiter: Underscore (`_`) is an unsupported delimiter for subtags](InvalidLanguageTagDelimiter.md.html) -* Jetpack Navigation Compose (androidx.navigation.compose) (4) +* Jetpack Navigation Compose (androidx.navigation.compose) (6) - [ComposableDestinationInComposeScope: Building composable destination in compose scope](ComposableDestinationInComposeScope.md.html) - [ComposableNavGraphInComposeScope: Building navigation graph in compose scope](ComposableNavGraphInComposeScope.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation.md.html) - [UnrememberedGetBackStackEntry: Calling getBackStackEntry during composition without using `remember`with a NavBackStackEntry key](UnrememberedGetBackStackEntry.md.html) - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) * slack (com.slack.lint.compose:compose-lints) (21) - - [ComposeComposableModifier: Don't use @Composable builder functions for modifiers](ComposeComposableModifier.md.html) - [ComposeCompositionLocalGetter: CompositionLocals should not use getters](ComposeCompositionLocalGetter.md.html) - [ComposeCompositionLocalUsage: CompositionLocals are discouraged](ComposeCompositionLocalUsage.md.html) - [ComposeContentEmitterReturningValues: Composable functions should emit XOR return](ComposeContentEmitterReturningValues.md.html) @@ -750,10 +753,12 @@ - [ComposeUnstableReceiver: Unstable receivers will always be recomposed](ComposeUnstableReceiver.md.html) - [ComposeViewModelForwarding: Don't forward ViewModels through composables](ComposeViewModelForwarding.md.html) - [ComposeViewModelInjection: Implicit dependencies of composables should be made explicit](ComposeViewModelInjection.md.html) + - [SlotReused: Slots should be invoked in at most one place](SlotReused.md.html) -* slack (slack-lint) (91) +* slack (slack-lint) (94) - [ArgInFormattedQuantityStringRes: Count value in formatted string resource](ArgInFormattedQuantityStringRes.md.html) + - [AvoidUsingNotNullOperator: Avoid using the !! operator in Kotlin](AvoidUsingNotNullOperator.md.html) - [BindingReceiverParameter: @Binds/@Provides functions cannot be extensions](BindingReceiverParameter.md.html) - [BindingReturnType: @Binds/@Provides must have a return type](BindingReturnType.md.html) - [BindsMustBeAbstract: @Binds functions must be abstract](BindsMustBeAbstract.md.html) @@ -765,6 +770,7 @@ - [DeprecatedCall: This class or method is deprecated; consider using an alternative](DeprecatedCall.md.html) - [DeprecatedSqlUsage: Use SqlDelight](DeprecatedSqlUsage.md.html) - [DoNotCallProviders: Dagger provider methods should not be called directly by user code](DoNotCallProviders.md.html) + - [DoNotCallViewToString: Do not use `View.toString()`](DoNotCallViewToString.md.html) - [DoNotExposeEitherNetInRepositories: Repository APIs should not expose EitherNet types directly](DoNotExposeEitherNetInRepositories.md.html) - [DoNotMock: ](DoNotMock.md.html) - [DoNotMockAnything: Do not add new mocks](DoNotMockAnything.md.html) @@ -783,6 +789,7 @@ - [GuavaPreconditionsUsedInKotlin: Kotlin precondition checks should use the Kotlin standard library checks](GuavaPreconditionsUsedInKotlin.md.html) - [InclusiveNaming: Use inclusive naming](InclusiveNaming.md.html) - [InclusiveNaming: Use inclusive naming](InclusiveNaming.md.html) + - [InflationInItemDecoration: Avoid inflating a view to display text](InflationInItemDecoration.md.html) - [InjectInJava: Only Kotlin classes should be injected in order for Anvil to work](InjectInJava.md.html) - [JavaOnlyDetector: Using @JavaOnly elements in Kotlin code](JavaOnlyDetector.md.html) - [KotlinPairNotCreated: Use Kotlin's kotlin.Pair instead of other Pair types from other libraries like AndroidX and Slack commons](KotlinPairNotCreated.md.html) diff --git a/docs/checks/year.md.html b/docs/checks/year.md.html index fe894a51..9a2d1d53 100644 --- a/docs/checks/year.md.html +++ b/docs/checks/year.md.html @@ -3,20 +3,24 @@ Order: [Alphabetical](index.md.html) | [By category](categories.md.html) | [By vendor](vendors.md.html) | [By severity](severity.md.html) | By year | [Libraries](libraries.md.html) -* 2024 (40) +* 2024 (47) - [AccessibilityFocus: Forcing accessibility focus](AccessibilityFocus.md.html) - [AccessibilityScrollActions: Incomplete Scroll Action support](AccessibilityScrollActions.md.html) - [AccessibilityWindowStateChangedEvent: Use of accessibility window state change events](AccessibilityWindowStateChangedEvent.md.html) + - [AvoidUsingNotNullOperator: Avoid using the !! operator in Kotlin](AvoidUsingNotNullOperator.md.html) - [BuildListAdds: Missing `add` call in `buildList`](BuildListAdds.md.html) - [ConstantContentStateKeyInItemsCall: Composables within an LazyList `items` call should have unique content state keys](ConstantContentStateKeyInItemsCall.md.html) + - [ContextCastToActivity: LocalContext should not be cast to Activity, use LocalActivity instead](ContextCastToActivity.md.html) - [CredManMissingDal: Missing Digital Asset Link for Credential Manager](CredManMissingDal.md.html) - [CredentialDependency: `credentials-play-services-auth` is Required](CredentialDependency.md.html) - [CredentialManagerMisuse: Misuse of Credential Manager API](CredentialManagerMisuse.md.html) - [CredentialManagerSignInWithGoogle: Misuse of Sign in with Google API](CredentialManagerSignInWithGoogle.md.html) - [DisabledAllSafeBrowsing: Application has disabled safe browsing for all WebView objects](DisabledAllSafeBrowsing.md.html) + - [DoNotCallViewToString: Do not use `View.toString()`](DoNotCallViewToString.md.html) - [EagerGradleConfiguration: Avoid using eager task APIs](EagerGradleConfiguration.md.html) - [GradleProjectIsolation: Avoid using APIs that are not project isolation safe](GradleProjectIsolation.md.html) + - [InflationInItemDecoration: Avoid inflating a view to display text](InflationInItemDecoration.md.html) - [InsecureDnsSdkLevel: Application vulnerable to DNS spoofing attacks](InsecureDnsSdkLevel.md.html) - [InsecurePermissionProtectionLevel: Custom permission created with a normal `protectionLevel`](InsecurePermissionProtectionLevel.md.html) - [InsecureStickyBroadcastsMethod: Usage of insecure sticky broadcasts](InsecureStickyBroadcastsMethod.md.html) @@ -26,16 +30,19 @@ - [InvalidLanguageTagDelimiter: Underscore (`_`) is an unsupported delimiter for subtags](InvalidLanguageTagDelimiter.md.html) - [InvalidUseOfOnBackPressed: Do not call onBackPressed() within OnBackPressedDisptacher](InvalidUseOfOnBackPressed.md.html) - [MissingAutoVerifyAttribute: Application has custom scheme intent filters with missing `autoVerify` attributes](MissingAutoVerifyAttribute.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation-2.md.html) + - [MissingKeepAnnotation: In minified builds, Enum classes used as type-safe Navigation arguments should be annotated with @androidx.annotation.Keep](MissingKeepAnnotation-3.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation-2.md.html) + - [MissingSerializableAnnotation: Type-safe NavDestinations must be annotated with @kotlinx.serialization.Serializable](MissingSerializableAnnotation-3.md.html) - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) - - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) - - [ProtoLayoutEdgeContentLayoutResponsive: ProtoLayout Material EdgeContentLayout should be used with responsivebehaviour to ensure the best behaviour across different screen sizes andlocales](ProtoLayoutEdgeContentLayoutResponsive.md.html) - - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) - - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) - [ProtoLayoutPrimaryLayoutResponsive: ProtoLayout Material PrimaryLayout should be used with responsive behaviourto ensure the best behaviour across different screen sizes and locales](ProtoLayoutPrimaryLayoutResponsive.md.html) + - [SlotReused: Slots should be invoked in at most one place](SlotReused.md.html) - [SuspiciousModifierThen: Using Modifier.then with a Modifier factory function with an implicit receiver](SuspiciousModifierThen.md.html) - [UnclosedTrace: Incorrect trace section usage](UnclosedTrace.md.html) - [UnnecessaryRequiredFeature: Potentially unnecessary required feature](UnnecessaryRequiredFeature.md.html) - - [UnsanitizedFilenameFromContentProvider: Trusting ContentProvider filenames without any sanitization](UnsanitizedFilenameFromContentProvider.md.html) + - [UnsanitizedContentProviderFilename: Trusting ContentProvider filenames without any sanitization](UnsanitizedContentProviderFilename.md.html) - [UnsanitizedFilenameFromContentProvider: Trusting ContentProvider filenames without any sanitization](UnsanitizedFilenameFromContentProvider.md.html) - [UnusedSharedTransitionModifierParameter: SharedTransitionScope calls should use the provided Modifier parameter](UnusedSharedTransitionModifierParameter.md.html) - [ViewModelConstructorInComposable: Constructing a view model in a composable](ViewModelConstructorInComposable.md.html) @@ -43,15 +50,14 @@ - [WithTypeWithoutConfigureEach: Flags usage of withType with a closure instead of configureEach](WithTypeWithoutConfigureEach.md.html) - [WrongNavigateRouteType: Navigation route should be an object literal or a destination class instance with arguments](WrongNavigateRouteType.md.html) - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) - - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) - - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType.md.html) + - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType-2.md.html) + - [WrongStartDestinationType: If the startDestination points to a Class with arguments, the startDestination must be an instance of that class. If it points to a Class without arguments, startDestination can be a KClass literal, such as StartClass::class.](WrongStartDestinationType-3.md.html) -* 2023 (62) +* 2023 (59) - [ArcAnimationSpecTypeIssue: ArcAnimationSpec is designed for 2D values. Particularly, for positional values such as Offset.](ArcAnimationSpecTypeIssue.md.html) - [AutoboxingStateCreation: `State` will autobox values assigned to this state. Use a specialized state type instead.](AutoboxingStateCreation.md.html) - [AutoboxingStateValueProperty: State access causes value to be autoboxed](AutoboxingStateValueProperty.md.html) - - [ComposeComposableModifier: Don't use @Composable builder functions for modifiers](ComposeComposableModifier.md.html) - [ComposeCompositionLocalGetter: CompositionLocals should not use getters](ComposeCompositionLocalGetter.md.html) - [ComposeCompositionLocalUsage: CompositionLocals are discouraged](ComposeCompositionLocalUsage.md.html) - [ComposeContentEmitterReturningValues: Composable functions should emit XOR return](ComposeContentEmitterReturningValues.md.html) @@ -85,8 +91,6 @@ - [ParcelizeFunctionProperty: Function type properties are not parcelable](ParcelizeFunctionProperty.md.html) - [PictureInPictureIssue: Picture In Picture best practices not followed](PictureInPictureIssue.md.html) - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) - - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) - - [ProtoLayoutMinSchema: ProtoLayout feature is not guaranteed to be available on the target device API](ProtoLayoutMinSchema.md.html) - [PublicKeyCredential: Creating public key credential](PublicKeyCredential.md.html) - [SecretInSource: Secret in source code](SecretInSource.md.html) - [SensitiveExternalPath: Application may expose sensitive info like PII by storing it in external storage](SensitiveExternalPath.md.html) @@ -268,7 +272,7 @@ - [RedundantBinds: @Binds functions should return a different type](RedundantBinds.md.html) - [RememberSaveableSaverParameter: `Saver` objects should be passed to the saver parameter, not the vararg `inputs` parameter](RememberSaveableSaverParameter.md.html) - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage.md.html) - - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage.md.html) + - [RepeatOnLifecycleWrongUsage: Wrong usage of repeatOnLifecycle](RepeatOnLifecycleWrongUsage-2.md.html) - [RestrictCallsTo: Methods annotated with @RestrictedCallsTo should only be called from the specified scope](RestrictCallsTo.md.html) - [RetrofitUsage: This is replaced by the caller](RetrofitUsage.md.html) - [SerializableUsage: Don't use Serializable](SerializableUsage.md.html) @@ -364,16 +368,16 @@ - [FragmentAddMenuProvider: Use getViewLifecycleOwner() as the LifecycleOwner instead of a Fragment instance](FragmentAddMenuProvider.md.html) - [FragmentBackPressedCallback: Use getViewLifecycleOwner() as the LifecycleOwner instead of a Fragment instance](FragmentBackPressedCallback.md.html) - [FragmentGradleConfiguration: Include the fragment-testing library using the debugImplementation configuration](FragmentGradleConfiguration.md.html) - - [FragmentGradleConfiguration: Include the fragment-testing-manifest library using the debugImplementation configuration](FragmentGradleConfiguration.md.html) + - [FragmentGradleConfiguration: Include the fragment-testing-manifest library using the debugImplementation configuration](FragmentGradleConfiguration-2.md.html) - [FragmentLiveDataObserve: Use getViewLifecycleOwner() as the LifecycleOwner instead of a Fragment instance when observing a LiveData object](FragmentLiveDataObserve.md.html) - [FragmentTagUsage: Use FragmentContainerView instead of the tag](FragmentTagUsage.md.html) - [MotionLayoutInvalidSceneFileReference: layoutDescription must specify a scene file](MotionLayoutInvalidSceneFileReference.md.html) - [MotionSceneFileValidationError: Validation errors in `MotionScene` files](MotionSceneFileValidationError.md.html) - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData.md.html) - - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData.md.html) + - [NullSafeMutableLiveData: LiveData value assignment nullability mismatch](NullSafeMutableLiveData-2.md.html) - [RemoveWorkManagerInitializer: Remove androidx.work.WorkManagerInitializer from your AndroidManifest.xml when using on-demand initialization](RemoveWorkManagerInitializer.md.html) - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage.md.html) - - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage.md.html) + - [UnsafeLifecycleWhenUsage: Unsafe UI operation in finally/catch of Lifecycle.whenStarted of similar method](UnsafeLifecycleWhenUsage-2.md.html) - [UnsafeOptInUsageError: Unsafe opt-in usage intended to be error-level severity](UnsafeOptInUsageError.md.html) - [UnsafeOptInUsageWarning: Unsafe opt-in usage intended to be warning-level severity](UnsafeOptInUsageWarning.md.html) - [UseAndroidAlpha: `android:alpha` attribute missing on `ColorStateList`](UseAndroidAlpha.md.html) @@ -414,9 +418,11 @@ - [UsingC2DM: Using C2DM](UsingC2DM.md.html) - [ValidActionsXml: Invalid Action Descriptor](ValidActionsXml.md.html) -* 2017 (31) +* 2017 (33) + - [AppLinkSplitToWebAndCustom: Android App links should only use http(s) schemes](AppLinkSplitToWebAndCustom.md.html) - [AppLinkUrlError: URI invalid](AppLinkUrlError.md.html) + - [AppLinkWarning: App Link warning](AppLinkWarning.md.html) - [BlockedPrivateApi: Using Blocked Private API](BlockedPrivateApi.md.html) - [CheckResult: Ignoring results](CheckResult.md.html) - [DiscouragedPrivateApi: Using Discouraged Private API](DiscouragedPrivateApi.md.html) @@ -611,7 +617,7 @@ - [WifiManagerPotentialLeak: WifiManager Potential Leak](WifiManagerPotentialLeak.md.html) - [WrongCase: Wrong case for view tag](WrongCase.md.html) -* 2012 (63) +* 2012 (64) - [AlwaysShowAction: Usage of `showAsAction=always`](AlwaysShowAction.md.html) - [ApplySharedPref: Use `apply()` on `SharedPreferences`](ApplySharedPref.md.html) @@ -676,6 +682,7 @@ - [WakelockTimeout: Using wakeLock without timeout](WakelockTimeout.md.html) - [WrongCall: Using wrong draw/layout method](WrongCall.md.html) - [WrongFolder: Resource file in the wrong `res` folder](WrongFolder.md.html) + - [WrongSdkInt: Mismatched SDK_INT or SDK_INT_FULL](WrongSdkInt.md.html) * 2011 (98)