1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-02-10 20:20:16 +00:00

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:
Aayush Gupta
2026-02-04 16:46:36 +08:00
parent 93d3909e19
commit ae7078e5b6
2 changed files with 9 additions and 7 deletions

View File

@@ -88,13 +88,7 @@ configure<ApplicationExtension> {
}
lint {
checkReleaseBuilds = false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
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"
lintConfig = file("lint.xml")
}
compileOptions {

8
app/lint.xml Normal file
View 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>