Am I doing something wrong here? I have pre-commit hook setup like this:
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args:
- --baseline=.secrets.baseline
But every time I commit, it seems like it scans whole codebase, which is very slow (as we have large codebase). I want it to scan only changed files. Is there a way to do that?
Am I doing something wrong here? I have pre-commit hook setup like this:
But every time I commit, it seems like it scans whole codebase, which is very slow (as we have large codebase). I want it to scan only changed files. Is there a way to do that?