mirror of
https://github.com/safedep/vet.git
synced 2025-12-10 00:22:08 -06:00
683 B
683 B
sidebar_position, title
| sidebar_position | title |
|---|---|
| 6 | 🚧 Path Exclusion |
🚧 Path Exclusion
vet supports path exclusions for scenarios where a directory is the scan target but certain path patterns within the directory should be excluded from scan. This is available only for the scan command.
vet scan -D /path/to/target --exclude 'docs/*'
- Multiple path patterns can be provided for exclusion while scanning a directory
vet scan -D /path/to/target \
--exclude 'docs/*' \
--exclude 'sub/dir/path/*'
:::info
The exclusion pattern matches any path, directory or file. Internally it uses Go regexp MatchString
:::