Code smell test for specifying both required and default in FieldAttributes

This commit is contained in:
Toshio Kuratomi 2015-12-09 08:23:45 -08:00
commit 04fc3f118f
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,10 @@
#!/bin/sh
BASEDIR=${1-"lib/ansible"}
cd "$BASEDIR"
grep -r FieldAttribute . |grep 'default' | grep 'required'
if test $? -eq 0 ; then
exit 1
fi
exit 0