Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ android {
enableAggregatingTask = true
}
namespace = "ca.cgagnier.wlednativeandroid"
lint {
fatal += "MissingTranslation"
}
Comment on lines +78 to +80
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This change will make the build fail immediately on your main branch because there are existing missing translations. For example, app/src/main/res/values/strings.xml contains a TODO for widget texts that are likely not translated yet.

To enforce this rule only for new changes, you should use a lint baseline. This will ignore existing issues and only report new ones. The project already uses this approach for detekt.

You can add the baseline to your lint configuration. After that, run ./gradlew :app:lint to generate the lint-baseline.xml file and commit it to your repository.

    lint {
        fatal += "MissingTranslation"
        baseline = file("lint-baseline.xml")
    }

}

ksp {
Expand Down
Loading