Skip to content
Commit 47364de5 authored by Giulio Fiscella's avatar Giulio Fiscella
Browse files

Only use EN-US strings to lint config

When we delete strings, we tend to delete only the EN-US version and we
then rely on the translation pipeline to delete all translations. The
linter would have reported a false positive if a string is deleted
without deleting the reference in the config, because it would fallback
on a translation. (Note that the actual code on the device would not
fallback if the device is set to EN-US).

Also, improve the string checks by taking into consideration which SDK a
string is available from.

Bug: 257974388
Test: m out/soong/.intermediates/packages/modules/Permission/SafetyCenter/Resources/SafetyCenterResources/android_common/lint/lint-report.html
Test: atest ConfigLintCheckerTest
Change-Id: I7b8bfa432c77f06fd24b16d271d7c8a4a008d021
parent 7e036336
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment