diff options
author | Tobrun Van Nuland <tobrun.van.nuland@gmail.com> | 2017-07-28 15:33:30 +0200 |
---|---|---|
committer | Tobrun Van Nuland <tobrun.van.nuland@gmail.com> | 2017-07-28 15:33:30 +0200 |
commit | de6c1d914a6b22e6cbfe8bbdae09a9c0d8af274b (patch) | |
tree | d8b72c5af496f1a7bf57b3661822501a3b7a8560 | |
parent | fede75c667a05126bad792f01a9110221562b48c (diff) | |
download | qtlocation-mapboxgl-upstream/tvn-fix-lint.tar.gz |
3 files changed, 23 insertions, 49 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/build.gradle b/platform/android/MapboxGLAndroidSDKTestApp/build.gradle index 1e4af3acf6..360cb36067 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/build.gradle +++ b/platform/android/MapboxGLAndroidSDKTestApp/build.gradle @@ -28,7 +28,7 @@ android { baseline file("lint-baseline-local.xml") checkAllWarnings true warningsAsErrors true - disable 'MissingTranslation', 'GoogleAppIndexingWarning', 'UnpackedNativeCode' + disable 'MissingTranslation', 'GoogleAppIndexingWarning', 'UnpackedNativeCode', 'IconDipSize' } buildTypes { diff --git a/platform/android/MapboxGLAndroidSDKTestApp/lint-baseline-local.xml b/platform/android/MapboxGLAndroidSDKTestApp/lint-baseline-local.xml index 3e66b617b2..e3c5abce4f 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/lint-baseline-local.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/lint-baseline-local.xml @@ -57,21 +57,6 @@ </issue> <issue - id="IconDipSize" - message="The image `icon_burned.png` varies significantly in its density-independent (dip) size across the various density versions: drawable-hdpi/icon_burned.png: 64x64 dp (96x96 px), drawable-xxxhdpi/icon_burned.png: 48x48 dp (192x192 px), drawable-xxhdpi/icon_burned.png: 48x48 dp (144x144 px), drawable-xhdpi/icon_burned.png: 48x48 dp (96x96 px), drawable-mdpi/icon_burned.png: 48x48 dp (48x48 px)"> - <location - file="src/main/res/drawable-mdpi/icon_burned.png"/> - <location - file="src/main/res/drawable-xhdpi/icon_burned.png"/> - <location - file="src/main/res/drawable-xxhdpi/icon_burned.png"/> - <location - file="src/main/res/drawable-xxxhdpi/icon_burned.png"/> - <location - file="src/main/res/drawable-hdpi/icon_burned.png"/> - </issue> - - <issue id="IconDuplicatesConfig" message="The `icon_burned.png` icon has identical contents in the following configuration folders: drawable-hdpi, drawable-xhdpi"> <location diff --git a/platform/android/MapboxGLAndroidSDKTestApp/lint/lint-baseline-ci.xml b/platform/android/MapboxGLAndroidSDKTestApp/lint/lint-baseline-ci.xml index d2fdb3d34b..64e3d41bcc 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/lint/lint-baseline-ci.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/lint/lint-baseline-ci.xml @@ -6,61 +6,50 @@ from lint-baseline-local.xml file) you should remove it too from lint-baseline-ci.xml (THIS FILE) which is the only one included in the repo. Eventually, it'll be removed (when we remove all current lint errors included). --> -<issues format="4" by="lint 2.3.1"> - +<issues by="lint 2.3.1" format="4"> + <issue - id="UnusedResources" - message="The resource `R.string.mapbox_access_token` appears to be unused" - errorLine1=" <string name="mapbox_access_token">YOUR_MAPBOX_ACCESS_TOKEN_GOES_HERE</string>" - errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~"> - <location - file="src/main/res/values/developer-config.xml" - line="3" - column="13"/> - </issue> - - <issue - id="Overdraw" - message="Possible overdraw: Root element paints background `#cccc` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" errorLine1=" android:background="#cccc"" - errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~"> + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~" + id="Overdraw" + message="Possible overdraw: Root element paints background `#cccc` with a theme that also paints a background (inferred theme is `@style/AppTheme`)"> <location + column="5" file="src/main/res/layout/drawer_navigation_drawer.xml" - line="4" - column="5"/> + line="4"/> </issue> <issue - id="Overdraw" - message="Possible overdraw: Root element paints background `?android:attr/selectableItemBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" errorLine1=" android:background="?android:attr/selectableItemBackground"" - errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + id="Overdraw" + message="Possible overdraw: Root element paints background `?android:attr/selectableItemBackground` with a theme that also paints a background (inferred theme is `@style/AppTheme`)"> <location + column="5" file="src/main/res/layout/item_main_feature.xml" - line="6" - column="5"/> + line="6"/> </issue> <issue - id="Overdraw" - message="Possible overdraw: Root element paints background `@color/mapboxGreen` with a theme that also paints a background (inferred theme is `@style/AppTheme`)" errorLine1=" android:background="@color/mapboxGreen">" - errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + id="Overdraw" + message="Possible overdraw: Root element paints background `@color/mapboxGreen` with a theme that also paints a background (inferred theme is `@style/AppTheme`)"> <location + column="5" file="src/main/res/layout/view_text_marker.xml" - line="5" - column="5"/> + line="5"/> </issue> <issue - id="TypographyQuotes" - message="Replace straight quotes ('') with directional quotes (‘’, &#8216; and &#8217;) ?" errorLine1=" <string name="mapbox_attributionTelemetryMessage">Estàs ajudant a millorar els mapes d\'OpenStreetMap i de Mapbox aportant dades d\'ús anònimes.</string>" - errorLine2=" ^"> + errorLine2=" ^" + id="TypographyQuotes" + message="Replace straight quotes ('') with directional quotes (‘’, &#8216; and &#8217;) ?"> <location + column="55" file="src/main/res/values-ca/strings.xml" - line="9" - column="55"/> + line="9"/> </issue> <issue |