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/ \
|
2016-11-04 06:30:27 +00:00
|
|
|
-e lib/ansible/compat/six/_six.py \
|
|
|
|
-e lib/ansible/module_utils/six.py \
|
2016-11-08 00:46:33 +00:00
|
|
|
-e lib/ansible/modules/core/ \
|
|
|
|
-e lib/ansible/modules/extras/ \
|
|
|
|
-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
|