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