This panel provides settings for managing exclusion templates. These templates can be used as follows:
When delivering code | Onboarding with Fast Scan When using the Application - Overview with Fast Scan panel after having delivered source code and before starting an analysis: |
---|---|
Legacy onboarding When delivering a new source code version in the Manage Exclusions step of the wizard, see: Application onboarding without Fast Scan - Standard onboarding - perform all actions - manage exclusions or Application onboarding without Fast Scan - Step-by-step onboarding - Add a new version and deliver source code: | |
When editing an existing version | When editing an existing version in the Version Management screen in Application - Versions: |
Creating a template allows you to define the folders or files types that should always be excluded (any excluded items will be ignored during the source code analysis). You can then re-use a template each time you deliver source code. One template will be provided out of the box called "default" as shown below (this cannot be edited nor deleted). This template will exclude the following items:
- target/ (folder
- temp/ (folder)
- tests/ (folder)
- *test (file)
- tmp/ (folder)
- .svn/ (folder)
- .git/ (folder)
Use this option to create a new exclusion template. The following dialog box will be displayed allowing you to create the exclusions you require: The pattern matching system uses glob patterns (see https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob for examples of how this system works). Enter an expression to match the folders you want to exclude and then press ENTER to add the expression to the list of excluded items. For example:
| |
Click to edit the selected template. You cannot edit the predefined template called default. | |
Click to delete the selected template. You cannot delete the predefined template called default. Note also that deleting a template that you have already used in a source code version will mean that when delivering a new version none of the exclusions provided in the deleted template will be actioned. |