mirror of
https://github.com/pratikwayal01/datacloak.git
synced 2026-10-26 06:59:34 +01:00
datacloak + aider (shell-wrapper only)
Aider has no hook API, so policy lives in git-layer wrappers:
- Copy
pre-committo.git/hooks/pre-commit(or wire viapre-commitconfig). - The hook pipes staged content through
datacloak scan(from PATH); exit 2 blocks the commit. - Set
DATACLOAK_VAULTif you share one vault file across sessions. - Optional
.aider.conf.ymlfeedback loop:test-cmd: pre-commit run --files {files}.