Introduce lint configuration and enable checks
Supress missing translation errors as they are done by volunteers Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
5a63344864
commit
d33c3737ec
2 changed files with 10 additions and 6 deletions
|
|
@ -88,13 +88,9 @@ configure<ApplicationExtension> {
|
||||||
}
|
}
|
||||||
|
|
||||||
lint {
|
lint {
|
||||||
checkReleaseBuilds = false
|
lintConfig = file("lint.xml")
|
||||||
// Or, if you prefer, you can continue to check for errors in release builds,
|
// Continue the debug build even when errors are found
|
||||||
// but continue the build even when errors are found:
|
|
||||||
abortOnError = false
|
abortOnError = false
|
||||||
// suppress false warning ("Resource IDs will be non-final in Android Gradle Plugin version
|
|
||||||
// 5.0, avoid using them in switch case statements"), which affects only library projects
|
|
||||||
disable += "NonConstantResourceId"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
|
|
|
||||||
8
app/lint.xml
Normal file
8
app/lint.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
~ SPDX-FileCopyrightText: 2026 NewPipe e.V. <https://newpipe-ev.de>
|
||||||
|
~ SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
-->
|
||||||
|
<lint>
|
||||||
|
<issue id="MissingTranslation" severity="ignore" />
|
||||||
|
</lint>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue