Excluding a file from a scan

Before you begin

Note: If your application is an Eclipse workspace, you cannot exclude files from scans.

Procedure

  1. In the Explorer view, select the file or files to eliminate from the scan.
  2. Right-click the selection and choose Exclude from Scans from the menu.

Results

When the Properties view is opened for the project that contains the file, the view's Sources tab lists files in the project, including excluded files.

Project folders and files are listed under the Source Root icon. Files and folders that are excluded from scanning have a red file icon (if an excluded file is right-clicked, its menu has Exclude disabled and Include enabled). To exclude an included file or folder, right-click it and choose Exclude in the menu. To include an excluded file or folder, right-click it and choose Include in the menu.