From 438af4de7ed98c1e1f588ff12bcdc646a0bdba02 Mon Sep 17 00:00:00 2001 From: Yahor Berdnikau Date: Mon, 31 Jul 2017 22:44:51 +0200 Subject: [PATCH] Add generated lint baseline files. This disables lint warnings for already existing issues, but it will work for a new issues. Signed-off-by: Yahor Berdnikau --- library/build.gradle | 5 + library/lint-baseline.xml | 59 + menudrawer/build.gradle | 5 + menudrawer/lint-baseline.xml | 246 + menudrawer/src/main/res/values/strings.xml | 6 +- pulltorefresh/build.gradle | 5 + pulltorefresh/lint-baseline.xml | 326 ++ .../main/res/values/pull_refresh_strings.xml | 14 +- ultrasonic/build.gradle | 5 + ultrasonic/lint-baseline.xml | 5142 +++++++++++++++++ ultrasonic/lint.xml | 3 - 11 files changed, 5803 insertions(+), 13 deletions(-) create mode 100644 library/lint-baseline.xml create mode 100644 menudrawer/lint-baseline.xml create mode 100644 pulltorefresh/lint-baseline.xml create mode 100644 ultrasonic/lint-baseline.xml delete mode 100644 ultrasonic/lint.xml diff --git a/library/build.gradle b/library/build.gradle index c0fac0ff..c375cbc8 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -15,6 +15,11 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } + + lintOptions { + baselineFile file("lint-baseline.xml") + abortOnError true + } } dependencies { diff --git a/library/lint-baseline.xml b/library/lint-baseline.xml new file mode 100644 index 00000000..76081cd7 --- /dev/null +++ b/library/lint-baseline.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/menudrawer/build.gradle b/menudrawer/build.gradle index 1670670d..cd6f4945 100644 --- a/menudrawer/build.gradle +++ b/menudrawer/build.gradle @@ -15,4 +15,9 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } + + lintOptions { + baselineFile file("lint-baseline.xml") + abortOnError true + } } diff --git a/menudrawer/lint-baseline.xml b/menudrawer/lint-baseline.xml new file mode 100644 index 00000000..859ac8dc --- /dev/null +++ b/menudrawer/lint-baseline.xml @@ -0,0 +1,246 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/menudrawer/src/main/res/values/strings.xml b/menudrawer/src/main/res/values/strings.xml index 27aacbb2..5411fe89 100644 --- a/menudrawer/src/main/res/values/strings.xml +++ b/menudrawer/src/main/res/values/strings.xml @@ -1,8 +1,8 @@ - + - Close drawer + Close drawer - Open drawer + Open drawer diff --git a/pulltorefresh/build.gradle b/pulltorefresh/build.gradle index 1670670d..cd6f4945 100644 --- a/pulltorefresh/build.gradle +++ b/pulltorefresh/build.gradle @@ -15,4 +15,9 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } + + lintOptions { + baselineFile file("lint-baseline.xml") + abortOnError true + } } diff --git a/pulltorefresh/lint-baseline.xml b/pulltorefresh/lint-baseline.xml new file mode 100644 index 00000000..771b65e4 --- /dev/null +++ b/pulltorefresh/lint-baseline.xml @@ -0,0 +1,326 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pulltorefresh/src/main/res/values/pull_refresh_strings.xml b/pulltorefresh/src/main/res/values/pull_refresh_strings.xml index fe48f3bc..20cd2fa4 100755 --- a/pulltorefresh/src/main/res/values/pull_refresh_strings.xml +++ b/pulltorefresh/src/main/res/values/pull_refresh_strings.xml @@ -1,13 +1,13 @@ - + - Pull to refresh… - Release to refresh… - Loading… + Pull to refresh… + Release to refresh… + Loading… - @string/pull_to_refresh_pull_label - @string/pull_to_refresh_release_label - @string/pull_to_refresh_refreshing_label + @string/pull_to_refresh_pull_label + @string/pull_to_refresh_release_label + @string/pull_to_refresh_refreshing_label \ No newline at end of file diff --git a/ultrasonic/build.gradle b/ultrasonic/build.gradle index e9bcd67c..4870827b 100644 --- a/ultrasonic/build.gradle +++ b/ultrasonic/build.gradle @@ -27,6 +27,11 @@ android { packagingOptions { exclude 'META-INF/LICENSE' } + + lintOptions { + baselineFile file("lint-baseline.xml") + abortOnError true + } } dependencies { diff --git a/ultrasonic/lint-baseline.xml b/ultrasonic/lint-baseline.xml new file mode 100644 index 00000000..bdd2edb8 --- /dev/null +++ b/ultrasonic/lint-baseline.xml @@ -0,0 +1,5142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ultrasonic/lint.xml b/ultrasonic/lint.xml deleted file mode 100644 index 8423c0ef..00000000 --- a/ultrasonic/lint.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file