Skip to main content

🚧 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