2016-08-23 20:13:44 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-11-08 00:46:33 +00:00
|
|
|
BASESTRING_USERS=$(grep -r basestring . \
|
|
|
|
--exclude-dir .git \
|
|
|
|
--exclude-dir .tox \
|
2016-11-04 06:30:27 +00:00
|
|
|
| grep isinstance \
|
|
|
|
| grep -v \
|
2016-11-30 05:21:53 +00:00
|
|
|
-e test/results/ \
|
2017-07-14 13:24:45 +00:00
|
|
|
-e docs/docsite/_build/ \
|
|
|
|
-e docs/docsite/rst/dev_guide/testing/sanity/ \
|
2017-07-24 20:36:54 +00:00
|
|
|
-e lib/ansible/module_utils/six/__init__.py \
|
2016-11-08 00:46:33 +00:00
|
|
|
-e '^[^:]*:#'
|
2016-11-04 06:30:27 +00:00
|
|
|
)
|
2016-08-23 20:13:44 +00:00
|
|
|
|
2016-11-08 00:46:33 +00:00
|
|
|
if [ "${BASESTRING_USERS}" ]; then
|
|
|
|
echo "${BASESTRING_USERS}"
|
|
|
|
exit 1
|
2016-08-23 20:13:44 +00:00
|
|
|
fi
|