diff --git a/tools/check/forbidden_strings_in_code.txt b/tools/check/forbidden_strings_in_code.txt index 9d22f882c6..98c49d6549 100644 --- a/tools/check/forbidden_strings_in_code.txt +++ b/tools/check/forbidden_strings_in_code.txt @@ -175,3 +175,6 @@ PreferenceManager\.getDefaultSharedPreferences==2 ### Use ViewBindings # findViewById + +### Do not use `template_` string. Please remove the prefix `template_` to use the generated resource instead. +R\.string\.template_ \ No newline at end of file diff --git a/tools/check/forbidden_strings_in_resources.txt b/tools/check/forbidden_strings_in_resources.txt index 6fb6b184ba..cefeeb6351 100644 --- a/tools/check/forbidden_strings_in_resources.txt +++ b/tools/check/forbidden_strings_in_resources.txt @@ -40,6 +40,9 @@ android\:summary=\"[^@|\%s] app\:ms_floatingLabelText=\"[^@] app\:ms_hint=\"[^@] +### Do not use `template_` string. Please remove the prefix `template_` to use the generated resource instead. +\"@string/template_ + ### "DO NOT COMMIT" has been committed DO NOT COMMIT