Skip to content

Commit

Permalink
enforce all-man style
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed May 31, 2016
1 parent ca098c5 commit ceadc7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ install:
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
- grep -nE "(for|foreach|foreach_reverse|if|while|switch|catch)\(" $(find . -name '*.d'); test $? -eq 1
# enforce whitespace between colon(:) for import statements (doesn't catch everything)
- grep 'import [^/,=]*:' **/*.d | grep -vE 'import ([^ ]+) : '; echo $?
- grep -n 'import [^/,=]*:' $(find . -name '*.d') | grep -vE 'import ([^ ]+) : '; echo $?
# enforce all-man style
- grep -nE "(if|for|foreach|foreach_reverse|while|unittest|switch|else|version) .*{$" $(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.

0 comments on commit ceadc7f

Please sign in to comment.