mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
Add hook to check the number of allowed lines
This commit is contained in:
parent
1ca4ceba96
commit
9d0b99f39f
4 changed files with 72 additions and 0 deletions
|
|
@ -58,6 +58,11 @@ Attempts to load all json files to verify syntax.
|
|||
#### `check-merge-conflict`
|
||||
Check for files that contain merge conflict strings.
|
||||
|
||||
#### `check-number-of-lines-count`
|
||||
Check if number of lines of a file is greater than a threshold. You can
|
||||
configure this with the following commandline option:
|
||||
- `--max-lines N` - maximum number of lines allowed in a file.
|
||||
|
||||
#### `check-shebang-scripts-are-executable`
|
||||
Checks that scripts with shebangs are executable.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue