diff --git a/.travis.yml b/.travis.yml index ac6f0839d89..3c075bd5214 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,5 +16,7 @@ script: - (cd .. && rdmd ./checkwhitespace.d $(find phobos -name '*.d')) # enforce whitespace between statements - grep -E "(for|foreach|foreach_reverse|if|while|switch|catch)\(" $(find . -name '*.d'); test $? -eq 1 + # enforce Allman brace style + - grep -E "(\)|unittest) {" $(find . -name '*.d'); test $? -eq 1 # at the moment libdparse has problems to parse some modules (->excludes) - ./dsc --config .dscanner.ini --styleCheck $(find etc std -type f -name '*.d' | grep -vE 'std/traits.d|std/typecons.d|std/conv.d') -I.