Skip to content

Commit

Permalink
Add travis check to ensure whitespace between the import colon
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed May 29, 2016
1 parent 2dfbc51 commit 94bdf74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 whitespace between colon(:) for import statements (doesn't catch everything)
- grep 'import [^/,=]*:' **/*.d | grep -vE 'import ([^ ]+) : '; echo $?
# 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 94bdf74

Please sign in to comment.