Add lint to ensure spaces are used for indentation
This commit is contained in:
committed by
Jeremy Soller
parent
4963e04a83
commit
8bdcf243ec
6
scripts/lint/indent.sh
Executable file
6
scripts/lint/indent.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
# Check files do not use tabs for indentation
|
||||
|
||||
git ls-files '*.[c\|h\|rs\|sh]' | xargs grep --line-number $'^\s*\t' && exit 1
|
||||
exit 0
|
Reference in New Issue
Block a user