mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
Add check for permitted characters in pathnames
Add a new checker that checks for allowed characters in pathnames. Includes arguments for overriding the default allowed list and extending it. Default allow list is alphanumeric plus `.-_`.
This commit is contained in:
parent
69b4df5589
commit
9bb6ebc34d
5 changed files with 109 additions and 0 deletions
|
|
@ -58,6 +58,9 @@ Attempts to load all json files to verify syntax.
|
|||
#### `check-merge-conflict`
|
||||
Check for files that contain merge conflict strings.
|
||||
|
||||
#### `check-permitted-path-characters`
|
||||
Check for allowed characters in pathnames.
|
||||
|
||||
#### `check-shebang-scripts-are-executable`
|
||||
Checks that scripts with shebangs are executable.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue