mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] next grep, no spaces (#10548)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
16a213f699
commit
8d0febfbb6
@@ -115,6 +115,13 @@ section "code issues"
|
||||
# FAILED=1
|
||||
# fi
|
||||
|
||||
part "space indentation"
|
||||
if grep -P '(^ {2})|(^ [^ * ])|(^ +)' $code_files; then
|
||||
echo
|
||||
echo -e "${RED}ERROR: space indentation detected.${NC}"
|
||||
FAILED=1
|
||||
fi;
|
||||
|
||||
part "mixed tab/space indentation"
|
||||
if grep -P '^\t+ [^ *]' $code_files; then
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user