mirror of https://github.com/ansible/ansible.git
Code smell test for specifying both required and default in FieldAttributes
parent
de703f81dd
commit
04fc3f118f
@ -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
|
||||
|
Loading…
Reference in New Issue