Skip to main content
vet supports path exclusions when scanning a directory: use the --exclude flag to skip path patterns within the target. Path exclusions are available only for the scan command.

Basic Usage

Exclude a single path pattern during directory scanning:

Multiple Exclusions

Specify multiple path patterns for exclusion:
Exclusion patterns use glob matching (the doublestar library), not regular expressions. Use * to match within a single path segment and ** to match across directories.

Common Exclusion Patterns

Documentation and Build Artifacts

Test Files and Directories

Version Control and Dependencies

Development Tools

Advanced Pattern Examples

File Extension Exclusions

Environment-Specific Exclusions

Complex Pattern Matching

Makefile Integration