mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 12:54:17 +00:00
Merge pull request #815 from pre-commit/forbid-submodules
add forbid-submodules hook
This commit is contained in:
commit
6b03546fc3
2 changed files with 12 additions and 0 deletions
|
|
@ -156,6 +156,12 @@
|
||||||
language: python
|
language: python
|
||||||
entry: forbid-new-submodules
|
entry: forbid-new-submodules
|
||||||
types: [directory]
|
types: [directory]
|
||||||
|
- id: forbid-submodules
|
||||||
|
name: forbid submodules
|
||||||
|
description: forbids any submodules in the repository
|
||||||
|
language: fail
|
||||||
|
entry: 'submodules are not allowed in this repository:'
|
||||||
|
types: [directory]
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
name: mixed line ending
|
name: mixed line ending
|
||||||
description: replaces or checks mixed line ending.
|
description: replaces or checks mixed line ending.
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,12 @@ The following arguments are available:
|
||||||
#### `forbid-new-submodules`
|
#### `forbid-new-submodules`
|
||||||
Prevent addition of new git submodules.
|
Prevent addition of new git submodules.
|
||||||
|
|
||||||
|
This is intended as a helper to migrate away from submodules. If you want to
|
||||||
|
ban them entirely use `forbid-submodules`
|
||||||
|
|
||||||
|
#### `forbid-submodules`
|
||||||
|
forbids any submodules in the repository.
|
||||||
|
|
||||||
#### `mixed-line-ending`
|
#### `mixed-line-ending`
|
||||||
Replaces or checks mixed line ending.
|
Replaces or checks mixed line ending.
|
||||||
- `--fix={auto,crlf,lf,no}`
|
- `--fix={auto,crlf,lf,no}`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue