Folder Exclusion
An additional configuration file is required to enable exclusion of specific paths from Jit monitoring. If you are already using a config.yml
file to enable dependency scanning within a monorepo, omit steps 1 and 2 from the procedure below and edit your existing config.yml
file.
To configure folder exclusion—
- Create a folder titled
.jit
in the root directory of any repo containing paths you want to exclude from Jit monitoring. - Create a file within this folder titled
config.yml
. - Edit
config.yml
to define paths to exclude. Glob patterns are supported.
folders:
- path: ./
exclude:
- excluded_under_root.yml
- **/*.md
- /exculded_folder/*
- project1/excluded.txt
folders:
# Excluding a directory and inner files
- path: /abc
exclude:
- /inner
- /inner/*
# Excluding a single file
- path: /def
exclude:
- /excluded.txt
# Excluding a directory only
- path: /ghi
exclude: [ /inner/ ]
# Excluding a directory only ending without a slash
- path: /jkl
exclude:
- /inner
# Excluding inner files only
- path: /mno
exclude:
- /inner/*
# Exclude patterns doesn't have to start with a slash
- path: /pqr
exclude:
- inner/*
# Exclude everything starting with a ./
- path: /stu
exclude:
- ./*
# Exclude everything with '*'
- path: /vwx
exclude:
- '*'
Updated 12 days ago