Executing Code Search Searches

Code Search is project related. It executes a search over all verified files in the project. All categories, criteria and lists with results are global options for all repository projects and show the results for the current search. After completing the search, the result is saved in the List View. The last executed search can be used as a starting point for the next search and can be accumulated with the new one by checking Accumulate search results in the search view. Otherwise the previous content from the list will be lost.

Use a Code Search to generate Code Search lists. You can modify the predefined search criteria or create your own criteria as needed. You can use a construct list itself to narrow the search.

  1. Select a list, then click the Down Arrow Button button next to the Search Button button on the tool bar. In the drop-down, choose the type of object you want to execute the search against. The Search window opens.
  2. In the Search In drop-down, select:
    • All Sources to execute the search against all the sources of the specified type in the project.
    • A list if you want to execute the search only against sources of the specified type with non-zero counts in the selected list. If you select Rule Finder.File Writes, for example, the search will be executed only against sources of the specified type with non-zero counts in the File Writes list in the Rule Finder folder.
  3. Choose the criterion for the search you want to execute from the list of criteria in the lefthand pane. Modify the predefined criteria or create your own criteria as needed.
  4. Select Accumulate Search Results if you want the results of the search to be added to the results of the previous search. Otherwise, the new results overwrite the previous results.
  5. Select:
    • Find All Constructs if you want Interactive Analysis to create for each searched file a list of all the constructs found by the search.
    • List Sources Only if you want Interactive Analysis simply to indicate for each searched file (with the notation >0) whether the construct of interest exists in the file.
    Interactive Analysis displays a dialog box with the results of the search operation. Click OK. The Search window is dismissed and the results of the search are displayed in the List view.