vet/docs/docs/advanced/path-exclusion.md
Madhu Akula 1cb84f13c0
Update path-exclusion.md
Fixed Markdown MDX stuff
2023-04-04 22:09:32 +02:00

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

:::