Overview of the Scanning Process
masterScanning is primarily managed through the SecretsCollection class. The engine uses a combination of:
- Plugins: Codified rules that scan strings/lines to find potential secrets.
- Filters: Pure functions that exclude false positives based on specific criteria.
- Transformers: Convert files into line-proxies to handle multi-line formats.
To scan files or diffs programmatically, use the SecretsCollection interface. While the tool provides high-level CLI commands, developers can call SecretsCollection.scan_diff directly for diff-based scanning.