Folder Exclusion

An additional configuration file is required to enable exclusion of specific paths from Jit monitoring. If you are already using a config.ymlfile to enable dependency scanning within a monorepo, omit steps 1 and 2 from the procedure below and edit your existing config.ymlfile.

To configure folder exclusion—

  1. Create a folder titled .jit in the root directory of any repo containing paths you want to exclude from Jit monitoring.
  2. Create a file within this folder titled config.yml.
  3. 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:
                  - '*'