Groups
Groups
Sign in
Groups
Groups
Ansible Development
Conversations
About
Send feedback
Help
Why does ansible-test pylint consider "_" to be a "bad-name"?
17 views
Skip to first unread message
Rich Megginson
unread,
Mar 8, 2021, 1:25:24 PM
3/8/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansibl...@googlegroups.com
Question about ansible-test sanity pylint -
https://github.com/ansible/ansible/blob/stable-2.9/test/lib/ansible_test/_data/sanity/pylint/config/ansible-test.cfg#L28
- why is _ considered a bad variable name? It is the standard, or at
least de facto, way to ignore one of the return values from a function?
Felix Fontein
unread,
Mar 8, 2021, 1:40:10 PM
3/8/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansibl...@googlegroups.com
Hi,
according to the documentation:
https://docs.ansible.com/ansible/latest/dev_guide/testing/sanity/no-underscore-variable.html
Cheers,
Felix
Reply all
Reply to author
Forward
0 new messages