Summary
Add ability to exclude directories from factor validate scans to reduce false positives.
Problem
When running factor validate on real-world codebases, certain directories produce false positives:
legacy/ - archived code kept for reference
actions-runner/ - CI runner with test credentials
third_party/ - vendored dependencies
examples/ - sample code with hardcoded values for demonstration
Proposed Solution
Add --exclude / -e flag that can be specified multiple times:
factor validate -p /path/to/app -e legacy -e actions-runner
Alternative
Expand the built-in skip_dirs list in is_hidden_or_vendor() to include common false-positive directories.
Workaround
Currently using factor validate -f json | jq to filter results externally.
Summary
Add ability to exclude directories from
factor validatescans to reduce false positives.Problem
When running
factor validateon real-world codebases, certain directories produce false positives:legacy/- archived code kept for referenceactions-runner/- CI runner with test credentialsthird_party/- vendored dependenciesexamples/- sample code with hardcoded values for demonstrationProposed Solution
Add
--exclude/-eflag that can be specified multiple times:Alternative
Expand the built-in
skip_dirslist inis_hidden_or_vendor()to include common false-positive directories.Workaround
Currently using
factor validate -f json | jqto filter results externally.