[MISC] Check space in the file names in the pre commit checks (#12804)
Signed-off-by: Lu Fang <lufang@fb.com>
This commit is contained in:
parent
aff404571b
commit
741429a4cd
@ -108,3 +108,9 @@ repos:
|
||||
language: system
|
||||
verbose: true
|
||||
pass_filenames: false
|
||||
- id: check-filenames
|
||||
name: Check for spaces in all filenames
|
||||
entry: bash -c 'git ls-files | grep " " && echo "Filenames should not contain spaces!" && exit 1 || exit 0'
|
||||
language: system
|
||||
always_run: true
|
||||
pass_filenames: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user