diff options
author | Márton Braun <zsmb@google.com> | 2023-05-11 16:14:27 +0200 |
---|---|---|
committer | Maksim Lazeba <mlazeba@google.com> | 2023-05-16 11:07:23 +0000 |
commit | c1bfe5c0ce1758dd321ea673b3750bc019a0ee1d (patch) | |
tree | 74c50475403456f0225be72c9d8f9043ce62d833 | |
parent | fe237b0f6cadfc638e51e9cace6c1eee5dab4940 (diff) | |
download | base-c1bfe5c0ce1758dd321ea673b3750bc019a0ee1d.tar.gz |
Update wording for KAPT/KSP lint warning
Test: GradleDetectorTest
Bug: 279954562
Change-Id: I778e8832b64763d7f9f7de52a562a3fdf396ee94
(cherry picked from commit 4f8ab8c96bc1865b9981064ec4326eee270a859b)
-rw-r--r-- | lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/GradleDetector.kt | 4 | ||||
-rw-r--r-- | lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/GradleDetectorTest.kt | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/GradleDetector.kt b/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/GradleDetector.kt index 5e6cb4d37e..eda7cddf13 100644 --- a/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/GradleDetector.kt +++ b/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/GradleDetector.kt @@ -1966,7 +1966,9 @@ open class GradleDetector : Detector(), GradleScanner, TomlScanner { if (!mAppliedKspPlugin) { // KSP plugin not applied yet in this module, point to docs on how to enable it fix() - .name("Enable KSP and use the KSP processor for this dependency instead") + .name( + "Learn about how to enable KSP and use the KSP processor for this dependency instead" + ) .url("https://developer.android.com/studio/build/migrate-to-ksp") .build() } else { diff --git a/lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/GradleDetectorTest.kt b/lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/GradleDetectorTest.kt index d673a9be37..473ba4e9af 100644 --- a/lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/GradleDetectorTest.kt +++ b/lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/GradleDetectorTest.kt @@ -5999,13 +5999,13 @@ class GradleDetectorTest : AbstractCheckTest() { ) .expectFixDiffs( """ - Show URL for build.gradle line 7: Enable KSP and use the KSP processor for this dependency instead: + Show URL for build.gradle line 7: Learn about how to enable KSP and use the KSP processor for this dependency instead: https://developer.android.com/studio/build/migrate-to-ksp - Show URL for build.gradle line 8: Enable KSP and use the KSP processor for this dependency instead: + Show URL for build.gradle line 8: Learn about how to enable KSP and use the KSP processor for this dependency instead: https://developer.android.com/studio/build/migrate-to-ksp - Show URL for build.gradle line 9: Enable KSP and use the KSP processor for this dependency instead: + Show URL for build.gradle line 9: Learn about how to enable KSP and use the KSP processor for this dependency instead: https://developer.android.com/studio/build/migrate-to-ksp - Show URL for build.gradle line 10: Enable KSP and use the KSP processor for this dependency instead: + Show URL for build.gradle line 10: Learn about how to enable KSP and use the KSP processor for this dependency instead: https://developer.android.com/studio/build/migrate-to-ksp """ ) |