Skip to content

Scan Policy

Warden applies a global scan policy before chunking files for analysis. The default policy skips common generated, build, lock, binary, media, archive, and large data artifacts.

Use defaults.ignore.paths for gitignore-style path overrides. Prefix a pattern with ! to re-include a file that would otherwise be ignored. Re-included files still use normal chunking rules.

warden.toml
[defaults.ignore]
paths = [
"**/fixtures/**",
"!**/fixtures/security-regressions/**",
]
[defaults.scan]
maxFiles = 150
maxChangedLines = 10000
maxFileBytes = 1048576
maxFileLines = 3000
maxFilesnumber
Max files to analyze after ignores are applied. Default: 150.
maxChangedLinesnumber
Max changed lines to analyze after ignores are applied. Default: 10000.
maxFileBytesnumber
Max file size for files whose contents may be read. Default: 1048576.
maxFileLinesnumber
Max file length for files whose contents may be read. Default: 3000.

When a run exceeds maxFiles or maxChangedLines, Warden scans files in the existing diff order until the budget is exhausted and records the remaining files as skipped.