Editing a Custom Detection Rule
Use the following procedure to edit a specific custom detection rule. The changed rule is applied to all future scans or rescans on projects in the Code Insight.
To edit an existing custom detection rule, do the following:
|
2.
|
In the Actions column for the component whose detection criteria you want to update, click the icon. The Edit Custom Rule dialog opens. |
Note that you can use the Inventory Name field to overwrite the default name component version (license) otherwise assigned to inventory items created by this rule.
|
4.
|
Manage the detection criteria for component. The type of criteria available depends on the Detection Criteria value assigned to the rule—File MD5or File Path. At least one criterion for the rule’s specified criteria type is required. |
|
•
|
When the criteria type is File MD5, the files associated with the component are identified by their MD5 value and listed in the File MD5 grid. To edit this criteria in the grid, do any of the following: |
|
•
|
Add a criterion by clicking the Add File button and providing the file’s name and MD5 value. |
|
•
|
Edit a criterion by clicking within its Name or MD5 field and making textual changes. |
|
•
|
Remove a file from the grid by clicking the icon next to the criterion. |
|
•
|
When the criteria type is File Path, the files associated with the component are identified by their file paths and listed in the File Path text box. To edit this criteria in the text box, do any of the following: |
|
•
|
Add a criterion by clicking the Add icon and entering file’s path. (You can provide the file’s absolute path or relative path, or you can provide a path pattern.) |
|
•
|
Edit a criterion by clicking within the path field and make textual changes. |
|
•
|
Remove a file from the text box by clicking the Remove icon . |
Note:If you want to switch the current Detection Criteria type from File MD5 to File Path or vice versa, know that once you enter the new set of criteria and save the rule, the criteria for the type currently not selected for Detection Criteria is automatically deleted. A custom detection rule allows only a single set of criteria to exist at any one time.
|
5.
|
Click Save to save the detection rule changes to the Code Insight Data Library. You will be asked for confirmation to proceed with the updates. |