4 ms·
Android's default linting already contains a "missing translation" lint rule which you can activate: "MissingTranslation"[0] For Android specifically: Gradle a
by david_allison 5y ago
Android's default linting already contains a "missing translation" lint rule which you can activate: "MissingTranslation"[0]
For Android specifically: Gradle and Android Studio both support a powerful linting framework (to the level that it can provide auto-fixes to the IDE). It's better to provide an in-editor to guide your contributors before it hits CI, then have CI nag if they didn't fix the in-editor warnings/errors:
Some examples of custom lint rules[1] and the default rules which Android Studio runs[2]:
[0] https://android.googlesource.com/platform/tools/base/+/32923407563b7e2c943cf372e3cd9d4398d09789/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/TranslationDetector.java#79 https://android.googlesource.com/platform/tools/base/+/32923...
[1] https://github.com/ankidroid/Anki-Android/tree/master/lint-rules/src/main/java/com/ichi2/anki/lint/rules https://github.com/ankidroid/Anki-Android/tree/master/lint-r...
[2] https://github.com/ankidroid/Anki-Android/blob/master/lint-release.xml https://github.com/ankidroid/Anki-Android/blob/master/lint-r...