Globalization code review
The Globalization code review consists of one category only; it is also called Globalization.
Purpose
The Globalization code review applies rules to detect code that is noncompliant with globalization standards and can jeopardize efforts such as translation and cultural formatting. This code review takes less time to execute, as it does not require in-depth code analysis.
Rule categories
The following table lists all of the categories and subcategories in the Globalization code review, along with a description of the rules in each one. In the left column, categories are in bold text and subcategories are in plain text.
Category or subcategory Description Globalization Contains rules that are based on globalization coding best practices, helping to ensure that code runs correctly in localized environments. Cultural Formatting Contains rules that address data formatting options used in different parts of the world Encoding Contains rules that validate encoding for globalization Locale Handling Contains rules that validate locales for globalization String Handling Contains rules that validate string operations for globalization Translation Contains rules that validate code for translation UI Specific Contains rules that validate user-interface layout and content for globalization
Sample rule
The following rule is a sample one that is applied in the Globalization code review. It is in the Globalization category, in the Cultural Formatting subcategory.Avoid using java.util.Date.toString () to convert a date to a string
Parent topic
Types of code review