mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 03:26:53 +00:00
feat: add whitelist support for detect-privat-key hook
This commit is contained in:
parent
6336b8e792
commit
706b591462
2 changed files with 19 additions and 1 deletions
|
|
@ -108,6 +108,14 @@ The following arguments are available:
|
|||
#### `detect-private-key`
|
||||
Checks for the existence of private keys.
|
||||
|
||||
The following arguments are available:
|
||||
- `--whitelist` - the filename with with the files (relative path) to whitelist. For example:
|
||||
|
||||
```yaml
|
||||
- id: detect-private-key
|
||||
args: [--whitelist=.detect-private-key.whitelist]
|
||||
```
|
||||
|
||||
#### `double-quote-string-fixer`
|
||||
This hook replaces double quoted strings with single quoted strings.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue