Skip to content

Commit 04ad5c7

Browse files
committed
Introduce lint configuration and enable checks
Supress missing translation errors as they are done by volunteers Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
1 parent 5da54ef commit 04ad5c7

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

app/build.gradle.kts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,7 @@ configure<ApplicationExtension> {
8888
}
8989

9090
lint {
91-
checkReleaseBuilds = false
92-
// Or, if you prefer, you can continue to check for errors in release builds,
93-
// but continue the build even when errors are found:
94-
abortOnError = false
95-
// suppress false warning ("Resource IDs will be non-final in Android Gradle Plugin version
96-
// 5.0, avoid using them in switch case statements"), which affects only library projects
97-
disable += "NonConstantResourceId"
91+
lintConfig = file("lint.xml")
9892
}
9993

10094
compileOptions {

app/lint.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ SPDX-FileCopyrightText: 2026 NewPipe e.V. <https://newpipe-ev.de>
4+
~ SPDX-License-Identifier: GPL-3.0-or-later
5+
-->
6+
<lint>
7+
<issue id="MissingTranslation" severity="ignore" />
8+
</lint>

0 commit comments

Comments
 (0)