diff --git a/scripts/assets/file_content_validation_checks.textproto b/scripts/assets/file_content_validation_checks.textproto index e8f036f6483..f44621f69ad 100644 --- a/scripts/assets/file_content_validation_checks.textproto +++ b/scripts/assets/file_content_validation_checks.textproto @@ -107,7 +107,6 @@ file_content_checks { prohibited_content_regex: "(format|getString|getStringArray|getQuantityString|getQuantityText|toLowerCase|toUpperCase|capitalize|decapitalize|lowercase|uppercase)\\(" failure_message: "String formatting and resource retrieval should go through AppLanguageResourceHandler, OppiaLocale.DisplayLocale, or OppiaLocale.MachineLocale depending on the context (see each class's documentation for details on when each should be used)." exempted_file_name: "domain/src/main/java/org/oppia/android/domain/locale/DisplayLocaleImpl.kt" - exempted_file_name: "domain/src/main/java/org/oppia/android/domain/locale/MachineLocaleImpl.kt" exempted_file_name: "domain/src/main/java/org/oppia/android/domain/locale/OppiaLocale.kt" exempted_file_name: "domain/src/main/java/org/oppia/android/domain/util/JsonExtensions.kt" exempted_file_name: "domain/src/main/java/org/oppia/android/domain/util/WorkDataExtensions.kt" @@ -115,6 +114,7 @@ file_content_checks { exempted_file_name: "testing/src/main/java/org/oppia/android/testing/OppiaTestRunner.kt" exempted_file_name: "testing/src/main/java/org/oppia/android/testing/time/FakeOppiaClock.kt" exempted_file_name: "utility/src/main/java/org/oppia/android/util/extensions/BundleExtensions.kt" + exempted_file_name: "utility/src/main/java/org/oppia/android/util/locale/MachineLocaleImpl.kt" exempted_file_patterns: "app/src/test/.+?Test\\.kt" exempted_file_patterns: "app/src/sharedTest/.+?Test\\.kt" exempted_file_patterns: "scripts/.+" diff --git a/utility/src/main/java/org/oppia/android/util/locale/OppiaLocale.kt b/utility/src/main/java/org/oppia/android/util/locale/OppiaLocale.kt index 5ff0183d162..0c6ce3f19b1 100644 --- a/utility/src/main/java/org/oppia/android/util/locale/OppiaLocale.kt +++ b/utility/src/main/java/org/oppia/android/util/locale/OppiaLocale.kt @@ -81,7 +81,7 @@ sealed class OppiaLocale { abstract fun computeDateTimeString(timestampMillis: Long): String // TODO: mention bidi wrapping (only applied to strings) & machine readable args - // TODO: document that receiver is the format (unlike String.format()). + // TODO: document that receiver is the format (unlike String.format). abstract fun String.formatInLocale(vararg args: Any?): String abstract fun String.capitalizeForHumans(): String