Unverified Commit 741429a4 authored by Lu Fang's avatar Lu Fang Committed by GitHub
Browse files

[MISC] Check space in the file names in the pre commit checks (#12804)


Signed-off-by: default avatarLu Fang <lufang@fb.com>
parent aff40457
...@@ -108,3 +108,9 @@ repos: ...@@ -108,3 +108,9 @@ repos:
language: system language: system
verbose: true verbose: true
pass_filenames: false 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment