summaryrefslogtreecommitdiff
path: root/dist/s_style
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2013-10-21 11:07:13 -0400
committerKeith Bostic <keith@wiredtiger.com>2013-10-21 11:07:13 -0400
commitf0559daeecbda617b53763bc8796006274779ea5 (patch)
tree25e36c751adea6d9f9635d57fa3cde139fd25296 /dist/s_style
parentddaaee62c2d7af3882cac9e7e9648637e062a635 (diff)
downloadmongo-f0559daeecbda617b53763bc8796006274779ea5.tar.gz
Add wtperf to the s_style pass.
Diffstat (limited to 'dist/s_style')
-rw-r--r--dist/s_style11
1 files changed, 7 insertions, 4 deletions
diff --git a/dist/s_style b/dist/s_style
index d0fa87c17f0..61c2dab389c 100644
--- a/dist/s_style
+++ b/dist/s_style
@@ -24,7 +24,8 @@ for f in `find examples ext src test -name '*.[ci]'`; do
}
done
-for f in `find examples ext src test -name '*.[chisy]' -o -name '*.in' |
+for f in \
+ `find bench/wtperf examples ext src test -name '*.[chisy]' -o -name '*.in' |
sed '/Makefile.in/d'`; do
if grep "^[^}]*while (0);" $f > $t; then
echo "$f: while (0) has trailing semi-colon"
@@ -44,7 +45,8 @@ for f in `find examples ext src test -name '*.[chisy]' -o -name '*.in' |
# Direct calls to functions we're not supposed to use in the library.
# We don't check for all of them, just a few of the common ones.
- if ! expr "$f" : 'examples/.*' > /dev/null &&
+ if ! expr "$f" : 'bench/.*' > /dev/null &&
+ ! expr "$f" : 'examples/.*' > /dev/null &&
! expr "$f" : 'ext/.*' > /dev/null &&
! expr "$f" : 'test/.*' > /dev/null &&
! expr "$f" : '.*/utilities/.*' > /dev/null; then
@@ -71,7 +73,8 @@ for f in `find examples ext src test -name '*.[chisy]' -o -name '*.in' |
fi
# Declaration of an integer return variable.
- if ! expr "$f" : 'examples/.*' > /dev/null &&
+ if ! expr "$f" : 'bench/.*' > /dev/null &&
+ ! expr "$f" : 'examples/.*' > /dev/null &&
! expr "$f" : 'test/.*' > /dev/null &&
! expr "$f" : 'ext/.*' > /dev/null; then
egrep -w ret $f | egrep 'int.*[, ]ret[,;]' > $t
@@ -132,7 +135,7 @@ test -s $t && {
}
# Check for common typos (Wikipedia's list).
-find examples ext src test \
+find bench examples ext src test \
-name '*.[chisy]' -o -name '*.in' -o -name '*.dox' |
xargs egrep -w 'a a|an an|and and|are are|be be|by by|for for|from from|if if|in in|is is|it it|of of|the the|this this|to to|was was|were were|when when|with with|a an|an a|a the|the a' > $t
test -s $t && {