Add hook to check the number of allowed lines

This commit is contained in:
Lorenz Egginger 2021-10-07 15:19:12 +02:00
parent 1ca4ceba96
commit 9d0b99f39f
4 changed files with 72 additions and 0 deletions

View file

@ -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.