|
|
Matching General PatternsThe configuration page for general pattern matches allows you to configure Globalyzer to search for just about any programming pattern. Examples of pattern matches include:
The general pattern matches configuration page allows you to specify patterns to include within the code scan:
To deselect a pattern, uncheck the box and click Save. To edit an existing pattern, click on its Search Pattern hyperlink. To add a customized pattern, click the Add New button at the bottom of the page. In either case, the Add/Edit General Detection Pattern page displays.
The Add/Edit page that displays contains three fields that are used to describe a rule: Name, Pattern, and Description. In the case of an existing General Pattern, you'll only be able to modify the Name and Description fields. Use the Name field to give your pattern a brief, meaningful name. Use the Description field to (1) enter a more indepth explanation of the pattern, (2) understand the reason for its inclusion in the scan, and/or (3) describe a process to correct the problem. Note: The Pattern field must contain a valid Regular Expression. For more information on Regular Expression syntax, click here. Once you've added or modified a General Pattern, click the OK button. The General Patterns List redisplays, showing your changes. Note: Your entry must be a valid Regular Expression. For more information on Regular Expression syntax, click here.
In this example, the new search pattern appears in the list with its checkbox selected. Click the Save button for the changes to take effect, and then the Back to Summary link to return to the Configure I18N Rule Set page.
|