mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
posix.mak: Enforce whitespace before opening parenthesis for version conditions
This commit is contained in:
parent
c029ef2ead
commit
fd5facfe04
74 changed files with 730 additions and 730 deletions
|
@ -562,7 +562,7 @@ style_lint: dscanner $(LIB)
|
||||||
grep -nr '[[:blank:]]$$' etc std ; test $$? -eq 1
|
grep -nr '[[:blank:]]$$' etc std ; test $$? -eq 1
|
||||||
|
|
||||||
@echo "Enforce whitespace before opening parenthesis"
|
@echo "Enforce whitespace before opening parenthesis"
|
||||||
grep -nrE "(for|foreach|foreach_reverse|if|while|switch|catch)\(" $$(find etc std -name '*.d') ; test $$? -eq 1
|
grep -nrE "\<(for|foreach|foreach_reverse|if|while|switch|catch|version)\(" $$(find etc std -name '*.d') ; test $$? -eq 1
|
||||||
|
|
||||||
@echo "Enforce whitespace between colon(:) for import statements (doesn't catch everything)"
|
@echo "Enforce whitespace between colon(:) for import statements (doesn't catch everything)"
|
||||||
grep -nr 'import [^/,=]*:.*;' $$(find etc std -name '*.d') | grep -vE "import ([^ ]+) :\s"; test $$? -eq 1
|
grep -nr 'import [^/,=]*:.*;' $$(find etc std -name '*.d') | grep -vE "import ([^ ]+) :\s"; test $$? -eq 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue