[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:
Lu Fang 2025-02-06 15:36:21 -08:00 committed by GitHub
parent aff404571b
commit 741429a4cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 6 additions and 0 deletions

View File

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