mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
Add check_path hook
Adds a hook which can be used for preventing commits to paths specified by regex.
This commit is contained in:
parent
f0bf512dbb
commit
ade67be453
5 changed files with 96 additions and 0 deletions
|
|
@ -57,6 +57,11 @@ Attempts to load all json files to verify syntax.
|
|||
#### `check-merge-conflict`
|
||||
Check for files that contain merge conflict strings.
|
||||
|
||||
#### `check-path-edits`
|
||||
Prevent files in specific paths from being committed.
|
||||
- Specify path patterns with regex `args: ["--pattern", "^tmp.*"]`.
|
||||
- Pattern can be specified many times.
|
||||
|
||||
#### `check-symlinks`
|
||||
Checks for symlinks which do not point to anything.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue