Exclusions

Default Exclusions
Embold uses below default exclusions while scanning your repositories:

👍

version: 1

sources:
#Files or Directories to be Excluded are mentioned in exclusions
exclusions:
- 'test'
- 'generated'
- 'mock'
- 'thirdparty'
- 'third-party'
- '3rd-party'
- '3rdparty'
- 'external'
- 'build'
- 'node_modules'
- 'assets'
- 'gulp'
- 'grunt'
- 'library'
- 'libs'
- '.git'

Update Exclusions
Embold uses default exclusions when a scan is triggered. But in case, you want to make changes to the default exclusions, you can check in embold.yaml file in the Base Directory (Root level of your repository).

Embold uses the YAML file format for configurations.

Embold supports exclusions using Regex patterns.

Example: Below is the regular expression “(?i)(test|generated|mock|thirdparty|third-party|3rd-party|3rdparty|external)

Please note that:

  • If embold.yaml file is not checked in in your repository, default exclusions will be considered.
  • If the embold.yaml file is checked in, but exclusions are not defined, no files will be excluded while scanning.
  • If the embold.yaml file is checked in, exclusions are defined, then exclusions from the checked in file will be considered while scanning. These will affect the executable lines of code in the source code.
    In the below example, all files/folders containing test or generated will be excluded.

👍

sources:
#Files or Directories to be Excluded are mentioned in exclusions
exclusions:

  • 'test'
  • 'generated'