mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 22:21:09 +03:00
Add initial style check to enforce space between binary operators
This commit is contained in:
parent
77b37fd8f1
commit
af42d8df3d
1 changed files with 3 additions and 0 deletions
|
@ -522,6 +522,9 @@ style: ../dscanner/dsc
|
|||
@echo "Enforce space between a .. b"
|
||||
grep -nrE '[[:alnum:]][.][.][[:alnum:]]|[[:alnum:]] [.][.][[:alnum:]]|[[:alnum:]][.][.] [[:alnum:]]' $$(find . -name '*.d' | grep -vE 'std/string.d|std/uni.d') ; test $$? -eq 1
|
||||
|
||||
@echo "Enforce space between binary operators"
|
||||
grep -nrE "[[:alnum:]](==|!=|<=|<<|>>|>>>|^^)[[:alnum:]]|[[:alnum:]] (==|!=|<=|<<|>>|>>>|^^)[[:alnum:]]|[[:alnum:]](==|!=|<=|<<|>>|>>>|^^) [[:alnum:]]" $$(find . -name '*.d'); test $$? -eq 1
|
||||
|
||||
# at the moment libdparse has problems to parse some modules (->excludes)
|
||||
@echo "Running DScanner"
|
||||
../dscanner/dsc --config .dscanner.ini --styleCheck $$(find etc std -type f -name '*.d' | grep -vE 'std/traits.d|std/typecons.d') -I.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue