Overview
| Lint | |
| 2 | warning LintBaseline: Baseline Issues |
| 1 | warning ObsoleteLintCustomCheck: Obsolete custom lint check |
| Correctness | |
| 1 | warning
SuspiciousImport: 'import android.R' statement |
| Performance | |
| 1 | warning ObsoleteSdkInt: Obsolete SDK_INT Version Check |
| 4 | warning VectorPath: Long vector paths |
| 2050 | warning UnusedResources: Unused resources |
| Included Additional Checks (85) | |
| Disabled Checks (43) |
Baseline Issues
LintBaseline
Information
Priority 10/10
Obsolete custom lint check
ObsoleteLintCustomCheck
Warning
Priority 10/10
'import android.R' statement
../../src/main/java/com/ftw_and_co/happn/ui/splash/SplashActivity.kt:3:
1 package com.ftw_and_co.happn.ui.splash 2 3 import android.R 4 import android.animation.ObjectAnimator 5 import android.content.ComponentCallbacks2 6 import android.content.Intent
SuspiciousImport
Correctness
Warning
Priority 9/10
Obsolete SDK_INT Version Check
../../src/main/java/com/ftw_and_co/happn/ui/splash/SplashActivity.kt:71:
68 val window = window 69 70 // Set the navigation bar color 71 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { 72 window?.navigationBarColor = resources.getColor(R.color.background_dark) 73 }
ObsoleteSdkInt
Performance
Warning
Priority 6/10
Long vector paths
../../src/main/res/drawable/logo_happn_didomi.xml:11:
8 android:pathData="M277.22,76.43C271.67,73.02 265.32,71.31 258.15,71.31C250.97,71.31 244.23,73.24 238.32,77.1C235.59,78.88 233.15,80.96 230.95,83.31V33.72H210.37V166.62H231.32V114.99C231.32,107.64 233.37,101.79 237.47,97.43C241.57,93.06 246.82,90.88 253.24,90.88C259.66,90.88 264.5,93.04 268.16,97.34C271.81,101.64 273.63,107.15 273.63,113.86V166.64H294.78V113.29C294.78,104.81 293.23,97.41 290.16,91.08C287.07,84.75 282.77,79.87 277.23,76.45L277.22,76.43Z" /> 9 <path 10 android:fillColor="#100F0A" 11 android:pathData="M377.85,83.24C375.75,81.24 373.46,79.43 370.96,77.85C364.09,73.49 356.39,71.31 347.83,71.31C339.28,71.31 331.24,73.43 324.13,77.67C317.02,81.92 311.44,87.76 307.42,95.23C303.39,102.7 301.39,111.11 301.39,120.48C301.39,129.85 303.4,138.21 307.42,145.54C311.46,152.89 317.02,158.64 324.13,162.82C331.24,167.01 339.15,169.09 347.83,169.09C356.52,169.09 364.11,166.9 370.96,162.54C373.46,160.95 375.77,159.14 377.85,157.15V166.63H399V73.6H377.85V83.27V83.24ZM374.26,135C371.88,139.36 368.54,142.75 364.25,145.15C359.97,147.55 355.19,148.76 349.9,148.76C344.61,148.76 340.04,147.52 335.83,145.05C331.62,142.59 328.27,139.17 325.83,134.79C323.38,130.43 322.14,125.52 322.14,120.08C322.14,114.63 323.36,109.93 325.83,105.55C328.27,101.18 331.62,97.74 335.83,95.21C340.05,92.68 344.74,91.41 349.9,91.41C355.07,91.41 359.97,92.65 364.25,95.11C368.52,97.58 371.88,100.99 374.26,105.37C376.65,109.73 377.85,114.64 377.85,120.09C377.85,125.53 376.65,130.62 374.26,134.99V135Z" /> 12 <path 13 android:fillColor="#100F0A" 14 android:pathData="M485.39,77.56C478.28,73.38 470.38,71.3 461.69,71.3C453,71.3 445.41,73.49 438.56,77.84C436.06,79.43 433.76,81.24 431.67,83.23V73.75H410.71V202.28H431.67V157.11C433.77,159.12 436.06,160.92 438.56,162.5C445.43,166.87 453.14,169.06 461.69,169.06C470.24,169.06 478.28,166.93 485.39,162.7C492.5,158.45 498.07,152.61 502.1,145.14C506.13,137.67 508.14,129.26 508.14,119.88C508.14,110.51 506.11,102.17 502.1,94.82C498.06,87.48 492.49,81.73 485.39,77.54V77.56ZM483.7,134.8C481.25,139.17 477.9,142.62 473.69,145.15C469.47,147.68 464.78,148.95 459.62,148.95C454.47,148.95 449.55,147.71 445.27,145.24C440.99,142.78 437.64,139.36 435.26,134.99C432.87,130.62 431.67,125.71 431.67,120.27C431.67,114.82 432.87,109.73 435.26,105.37C437.64,101 440.99,97.62 445.27,95.22C449.54,92.82 454.33,91.61 459.62,91.61C464.92,91.61 469.47,92.85 473.69,95.31C477.9,97.78 481.25,101.19 483.7,105.57C486.15,109.94 487.38,114.85 487.38,120.29C487.38,125.73 486.16,130.44 483.7,134.82V134.8Z" />../../src/main/res/drawable/logo_happn_didomi.xml:14:
11 android:pathData="M377.85,83.24C375.75,81.24 373.46,79.43 370.96,77.85C364.09,73.49 356.39,71.31 347.83,71.31C339.28,71.31 331.24,73.43 324.13,77.67C317.02,81.92 311.44,87.76 307.42,95.23C303.39,102.7 301.39,111.11 301.39,120.48C301.39,129.85 303.4,138.21 307.42,145.54C311.46,152.89 317.02,158.64 324.13,162.82C331.24,167.01 339.15,169.09 347.83,169.09C356.52,169.09 364.11,166.9 370.96,162.54C373.46,160.95 375.77,159.14 377.85,157.15V166.63H399V73.6H377.85V83.27V83.24ZM374.26,135C371.88,139.36 368.54,142.75 364.25,145.15C359.97,147.55 355.19,148.76 349.9,148.76C344.61,148.76 340.04,147.52 335.83,145.05C331.62,142.59 328.27,139.17 325.83,134.79C323.38,130.43 322.14,125.52 322.14,120.08C322.14,114.63 323.36,109.93 325.83,105.55C328.27,101.18 331.62,97.74 335.83,95.21C340.05,92.68 344.74,91.41 349.9,91.41C355.07,91.41 359.97,92.65 364.25,95.11C368.52,97.58 371.88,100.99 374.26,105.37C376.65,109.73 377.85,114.64 377.85,120.09C377.85,125.53 376.65,130.62 374.26,134.99V135Z" /> 12 <path 13 android:fillColor="#100F0A" 14 android:pathData="M485.39,77.56C478.28,73.38 470.38,71.3 461.69,71.3C453,71.3 445.41,73.49 438.56,77.84C436.06,79.43 433.76,81.24 431.67,83.23V73.75H410.71V202.28H431.67V157.11C433.77,159.12 436.06,160.92 438.56,162.5C445.43,166.87 453.14,169.06 461.69,169.06C470.24,169.06 478.28,166.93 485.39,162.7C492.5,158.45 498.07,152.61 502.1,145.14C506.13,137.67 508.14,129.26 508.14,119.88C508.14,110.51 506.11,102.17 502.1,94.82C498.06,87.48 492.49,81.73 485.39,77.54V77.56ZM483.7,134.8C481.25,139.17 477.9,142.62 473.69,145.15C469.47,147.68 464.78,148.95 459.62,148.95C454.47,148.95 449.55,147.71 445.27,145.24C440.99,142.78 437.64,139.36 435.26,134.99C432.87,130.62 431.67,125.71 431.67,120.27C431.67,114.82 432.87,109.73 435.26,105.37C437.64,101 440.99,97.62 445.27,95.22C449.54,92.82 454.33,91.61 459.62,91.61C464.92,91.61 469.47,92.85 473.69,95.31C477.9,97.78 481.25,101.19 483.7,105.57C486.15,109.94 487.38,114.85 487.38,120.29C487.38,125.73 486.16,130.44 483.7,134.82V134.8Z" /> 15 <path 16 android:fillColor="#100F0A" 17 android:pathData="M592.01,77.56C584.9,73.38 577,71.3 568.31,71.3C559.62,71.3 552.03,73.49 545.18,77.84C542.68,79.43 540.38,81.24 538.29,83.23V73.75H517.34V202.28H538.29V157.11C540.39,159.12 542.69,160.92 545.18,162.5C552.04,166.87 559.76,169.06 568.31,169.06C576.86,169.06 584.9,166.93 592.01,162.7C599.12,158.45 604.69,152.61 608.72,145.14C612.75,137.67 614.76,129.26 614.76,119.88C614.76,110.51 612.73,102.17 608.72,94.82C604.68,87.48 599.11,81.73 592.01,77.54V77.56ZM590.32,134.8C587.87,139.17 584.53,142.62 580.31,145.15C576.09,147.68 571.4,148.95 566.24,148.95C561.09,148.95 556.17,147.71 551.89,145.24C547.61,142.78 544.26,139.36 541.88,134.99C539.49,130.62 538.29,125.71 538.29,120.27C538.29,114.82 539.49,109.73 541.88,105.37C544.26,101 547.61,97.62 551.89,95.22C556.17,92.82 560.95,91.61 566.24,91.61C571.53,91.61 576.09,92.85 580.31,95.31C584.53,97.78 587.87,101.19 590.32,105.57C592.77,109.94 594,114.85 594,120.29C594,125.73 592.78,130.44 590.32,134.82V134.8Z" />../../src/main/res/drawable/logo_happn_didomi.xml:17:
14 android:pathData="M485.39,77.56C478.28,73.38 470.38,71.3 461.69,71.3C453,71.3 445.41,73.49 438.56,77.84C436.06,79.43 433.76,81.24 431.67,83.23V73.75H410.71V202.28H431.67V157.11C433.77,159.12 436.06,160.92 438.56,162.5C445.43,166.87 453.14,169.06 461.69,169.06C470.24,169.06 478.28,166.93 485.39,162.7C492.5,158.45 498.07,152.61 502.1,145.14C506.13,137.67 508.14,129.26 508.14,119.88C508.14,110.51 506.11,102.17 502.1,94.82C498.06,87.48 492.49,81.73 485.39,77.54V77.56ZM483.7,134.8C481.25,139.17 477.9,142.62 473.69,145.15C469.47,147.68 464.78,148.95 459.62,148.95C454.47,148.95 449.55,147.71 445.27,145.24C440.99,142.78 437.64,139.36 435.26,134.99C432.87,130.62 431.67,125.71 431.67,120.27C431.67,114.82 432.87,109.73 435.26,105.37C437.64,101 440.99,97.62 445.27,95.22C449.54,92.82 454.33,91.61 459.62,91.61C464.92,91.61 469.47,92.85 473.69,95.31C477.9,97.78 481.25,101.19 483.7,105.57C486.15,109.94 487.38,114.85 487.38,120.29C487.38,125.73 486.16,130.44 483.7,134.82V134.8Z" /> 15 <path 16 android:fillColor="#100F0A" 17 android:pathData="M592.01,77.56C584.9,73.38 577,71.3 568.31,71.3C559.62,71.3 552.03,73.49 545.18,77.84C542.68,79.43 540.38,81.24 538.29,83.23V73.75H517.34V202.28H538.29V157.11C540.39,159.12 542.69,160.92 545.18,162.5C552.04,166.87 559.76,169.06 568.31,169.06C576.86,169.06 584.9,166.93 592.01,162.7C599.12,158.45 604.69,152.61 608.72,145.14C612.75,137.67 614.76,129.26 614.76,119.88C614.76,110.51 612.73,102.17 608.72,94.82C604.68,87.48 599.11,81.73 592.01,77.54V77.56ZM590.32,134.8C587.87,139.17 584.53,142.62 580.31,145.15C576.09,147.68 571.4,148.95 566.24,148.95C561.09,148.95 556.17,147.71 551.89,145.24C547.61,142.78 544.26,139.36 541.88,134.99C539.49,130.62 538.29,125.71 538.29,120.27C538.29,114.82 539.49,109.73 541.88,105.37C544.26,101 547.61,97.62 551.89,95.22C556.17,92.82 560.95,91.61 566.24,91.61C571.53,91.61 576.09,92.85 580.31,95.31C584.53,97.78 587.87,101.19 590.32,105.57C592.77,109.94 594,114.85 594,120.29C594,125.73 592.78,130.44 590.32,134.82V134.8Z" /> 18 <path 19 android:fillColor="#100F0A" 20 android:pathData="M702.38,91.04C699.29,84.71 694.99,79.84 689.45,76.42C683.9,73.01 677.56,71.3 670.38,71.3C663.2,71.3 656.46,73.23 650.55,77.09C647.83,78.87 645.38,80.95 643.18,83.3V73.77H622.59V166.61H643.55V114.97C643.55,107.63 645.59,101.78 649.69,97.42C653.78,93.05 659.04,90.87 665.46,90.87C671.88,90.87 676.73,93.03 680.38,97.33C684.03,101.63 685.85,107.14 685.85,113.85V166.63H707V113.28C707,104.8 705.46,97.39 702.38,91.07V91.04Z" />../../src/main/res/drawable/logo_happn_didomi.xml:23:
20 android:pathData="M702.38,91.04C699.29,84.71 694.99,79.84 689.45,76.42C683.9,73.01 677.56,71.3 670.38,71.3C663.2,71.3 656.46,73.23 650.55,77.09C647.83,78.87 645.38,80.95 643.18,83.3V73.77H622.59V166.61H643.55V114.97C643.55,107.63 645.59,101.78 649.69,97.42C653.78,93.05 659.04,90.87 665.46,90.87C671.88,90.87 676.73,93.03 680.38,97.33C684.03,101.63 685.85,107.14 685.85,113.85V166.63H707V113.28C707,104.8 705.46,97.39 702.38,91.07V91.04Z" /> 21 <path 22 android:fillColor="#100F0A" 23 android:pathData="M161.3,120.11C160.21,97.03 149.35,78.34 130.7,67.48C112.98,57.16 91.7,55.33 69.12,62.17C59.9,31.58 48.58,3.95 47.29,0.88L46.93,0L21.98,10.31L21.13,10.71L21.49,11.57C22.8,14.75 34.43,43.28 43.32,73.44C30.83,80.6 18.74,90.08 11.68,98.38C2.17,109.5 -1.72,122.42 0.7,134.78C2.97,146.32 10.54,155.93 22,161.85C35.76,168.95 52.16,168.23 63.81,160.04C71.73,154.44 84.37,140.37 80.01,108.77C79.19,102.87 77.96,96.26 76.33,89.12C91.81,84.19 105.36,85.02 116.6,91.57C142.61,106.7 133.7,143.57 121.38,164.65C107.18,188.96 75.62,212.88 75.31,213.12L74.54,213.67L91.31,236L92.08,235.45C93.56,234.35 128.39,208.07 145.54,178.71C156.58,159.82 162.17,139.01 161.3,120.11ZM28.68,122.4C30.89,116.71 45.66,105.62 49.97,102.48C51.03,107.69 54.46,125.82 52.24,131.52C49.72,138 42.36,141.21 35.9,138.72C29.4,136.2 26.16,128.88 28.68,122.4Z" /> 24 </vector>
VectorPath
Performance
Warning
Priority 5/10
Unused resources
../../src/main/res/values/braze.xml:4:
1 <?xml version="1.0" encoding="utf-8"?> 2 <resources> 3 <!-- Prod Key --> 4 <string translatable="false" name="com_braze_api_key">0d5a1a3c-8fce-44aa-8b31-4637b2a9d3a6</string> 5 <string translatable="false" name="com_braze_custom_endpoint">https://sdk.fra-01.braze.eu</string> 6 <bool name="com_braze_handle_push_deep_links_automatically">true</bool> 7 <bool name="com_braze_firebase_cloud_messaging_registration_enabled">true</bool>../../src/main/res/values/braze.xml:5:
2 <resources> 3 <!-- Prod Key --> 4 <string translatable="false" name="com_braze_api_key">0d5a1a3c-8fce-44aa-8b31-4637b2a9d3a6</string> 5 <string translatable="false" name="com_braze_custom_endpoint">https://sdk.fra-01.braze.eu</string> 6 <bool name="com_braze_handle_push_deep_links_automatically">true</bool> 7 <bool name="com_braze_firebase_cloud_messaging_registration_enabled">true</bool>../../src/main/res/values/braze.xml:6:
3 <!-- Prod Key --> 4 <string translatable="false" name="com_braze_api_key">0d5a1a3c-8fce-44aa-8b31-4637b2a9d3a6</string> 5 <string translatable="false" name="com_braze_custom_endpoint">https://sdk.fra-01.braze.eu</string> 6 <bool name="com_braze_handle_push_deep_links_automatically">true</bool> 7 <bool name="com_braze_firebase_cloud_messaging_registration_enabled">true</bool> 8 9 <string translatable="false" name="com_braze_firebase_cloud_messaging_sender_id">1036899618040</string>../../src/main/res/values/braze.xml:7:
4 <string translatable="false" name="com_braze_api_key">0d5a1a3c-8fce-44aa-8b31-4637b2a9d3a6</string> 5 <string translatable="false" name="com_braze_custom_endpoint">https://sdk.fra-01.braze.eu</string> 6 <bool name="com_braze_handle_push_deep_links_automatically">true</bool> 7 <bool name="com_braze_firebase_cloud_messaging_registration_enabled">true</bool> 8 9 <string translatable="false" name="com_braze_firebase_cloud_messaging_sender_id">1036899618040</string> 10 </resources>../../src/main/res/values/braze.xml:9:
6 <bool name="com_braze_handle_push_deep_links_automatically">true</bool> 7 <bool name="com_braze_firebase_cloud_messaging_registration_enabled">true</bool> 8 9 <string translatable="false" name="com_braze_firebase_cloud_messaging_sender_id">1036899618040</string> 10 </resources>+ 2045 More Occurrences...
UnusedResources
Performance
Warning
Priority 3/10
Included Additional Checks
This card lists all the extra checks run by lint, provided from libraries,
build configuration and extra flags. This is included to help you verify
whether a particular check is included in analysis when configuring builds.
(Note that the list does not include the hundreds of built-in checks into lint,
only additional ones.)
Disabled Checks
One or more issues were not run by lint, either
because the check is not enabled by default, or because
it was disabled with a command line flag or via one or
more
lint.xml configuration files in the project directories.
Suppressing Warnings and Errors
Lint errors can be suppressed in a variety of ways:
1. With a
2. With a
3. With a //noinspection comment in the source code
4. With ignore flags specified in the
5. With a
6. With a
7. With the --ignore flag passed to lint.
To suppress a lint warning with an annotation, add a
To suppress a lint warning with a comment, add a
To suppress a lint warning in an XML file, add a
To suppress a lint warning in a
Here we specify a comma separated list of issue id's after the disable command. You can also use
To suppress lint warnings with a configuration XML file, create a file named
The format of the
To suppress lint checks from the command line, pass the --ignore flag with a comma separated list of ids to be suppressed, such as:
For more information, see https://developer.android.com/studio/write/lint.html#config
1. With a
@SuppressLint annotation in the Java code2. With a
tools:ignore attribute in the XML file3. With a //noinspection comment in the source code
4. With ignore flags specified in the
build.gradle file, as explained below5. With a
lint.xml configuration file in the project6. With a
lint.xml configuration file passed to lint via the --config flag7. With the --ignore flag passed to lint.
To suppress a lint warning with an annotation, add a
@SuppressLint("id") annotation on the class, method or variable declaration closest to the warning instance you want to disable. The id can be one or more issue id's, such as "UnusedResources" or {"UnusedResources","UnusedIds"}, or it can be "all" to suppress all lint warnings in the given scope.To suppress a lint warning with a comment, add a
//noinspection id comment on the line before the statement with the error.To suppress a lint warning in an XML file, add a
tools:ignore="id" attribute on the element containing the error, or one of its surrounding elements. You also need to define the namespace for the tools prefix on the root element in your document, next to the xmlns:android declaration:xmlns:tools="http://schemas.android.com/tools"To suppress a lint warning in a
build.gradle file, add a section like this:
android {
lintOptions {
disable 'TypographyFractions','TypographyQuotes'
}
}
Here we specify a comma separated list of issue id's after the disable command. You can also use
warning or error instead of disable to change the severity of issues.To suppress lint warnings with a configuration XML file, create a file named
lint.xml and place it at the root directory of the module in which it applies.The format of the
lint.xml file is something like the following:
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<!-- Ignore everything in the test source set -->
<issue id="all">
<ignore path="\*/test/\*" />
</issue>
<!-- Disable this given check in this project -->
<issue id="IconMissingDensityFolder" severity="ignore" />
<!-- Ignore the ObsoleteLayoutParam issue in the given files -->
<issue id="ObsoleteLayoutParam">
<ignore path="res/layout/activation.xml" />
<ignore path="res/layout-xlarge/activation.xml" />
<ignore regexp="(foo|bar)\.java" />
</issue>
<!-- Ignore the UselessLeaf issue in the given file -->
<issue id="UselessLeaf">
<ignore path="res/layout/main.xml" />
</issue>
<!-- Change the severity of hardcoded strings to "error" -->
<issue id="HardcodedText" severity="error" />
</lint>
To suppress lint checks from the command line, pass the --ignore flag with a comma separated list of ids to be suppressed, such as:
$ lint --ignore UnusedResources,UselessLeaf /my/project/pathFor more information, see https://developer.android.com/studio/write/lint.html#config