mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add a exception for module_utils/six.py regarding code smell (#15878)
Since six replace urlopen, it is normal to trigger the test, hence the exception
This commit is contained in:
parent
2cd17b66be
commit
376fc21f92
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
BASEDIR=${1-"."}
|
BASEDIR=${1-"."}
|
||||||
|
|
||||||
URLLIB_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -H urlopen \{\} \;)
|
URLLIB_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -H urlopen \{\} \;)
|
||||||
URLLIB_USERS=$(echo "$URLLIB_USERS" | sed '/\(\n\|lib\/ansible\/module_utils\/urls.py\|lib\/ansible\/compat\/six\/_six.py\|.tox\)/d')
|
URLLIB_USERS=$(echo "$URLLIB_USERS" | sed '/\(\n\|lib\/ansible\/module_utils\/urls.py\|lib\/ansible\/module_utils\/six.py\|lib\/ansible\/compat\/six\/_six.py\|.tox\)/d')
|
||||||
URLLIB_USERS=$(echo "$URLLIB_USERS" | sed '/^[^:]\+:#/d')
|
URLLIB_USERS=$(echo "$URLLIB_USERS" | sed '/^[^:]\+:#/d')
|
||||||
if test -n "$URLLIB_USERS" ; then
|
if test -n "$URLLIB_USERS" ; then
|
||||||
printf "$URLLIB_USERS"
|
printf "$URLLIB_USERS"
|
||||||
|
|
Loading…
Reference in a new issue