Open fenris02 opened 6 years ago
@fenris02 (DJ) Thank you for this.
1) I'll need to check, though I'm fairly sure ansible-test runs yamllint. I think we ignore requiring ---
at the start
2) Linelength is the same as ansible/ansible 160chrs
3) deprecated sudo feature looks seems valid. Though I think we can just delete .travis.yml
4) Wonder if we should run Will Thames' ansible-lint
Also from Galaxy import
ERROR [role] ./action_plugins/cli.py:122:9: E722 do not use bare except'
ERROR [role] ./action_plugins/cli.py:132:121: E501 line too long (123 > 120 characters)
ERROR [role] ./action_plugins/command_parser.py:16:1: F401 'ansible.module_utils.six.iterkeys' imported but unused
ERROR [role] ./action_plugins/command_parser.py:20:1: F401 'ansible.plugins.filter.core.combine' imported but unused
ERROR [role] ./filter_plugins/network_engine.py:54:42: F812 list comprehension redefines 'index' from line 38
ERROR [role] ./filter_plugins/network_engine.py:101:35: F812 list comprehension redefines 'index' from line 86
ERROR [role] ./lookup_plugins/network_template.py:49:9: F841 local variable 'convert_data_p' is assigned to but never used
ERROR [role] ./lookup_plugins/network_template.py:50:9: F841 local variable 'lookup_template_vars' is assigned to but never used
ERROR [role] ./lookup_plugins/network_template.py:64:21: F841 local variable 'template_data' is assigned to but never used
ERROR [role] ./lookup_plugins/network_template.py:69:25: F841 local variable 'name' is assigned to but never used
ERROR [role] ./lookup_plugins/network_template.py:123:13: F841 local variable 'name' is assigned to but never used
ERROR [role] ./lookup_plugins/network_template.py:124:13: F841 local variable 'register' is assigned to but never used
ERROR [role] ./lookup_plugins/network_template.py:255:33: F841 local variable 'exc' is assigned to but never used
ERROR Lint failed
Minor lint issues found in network-engine:
ISSUE TYPE
ANSIBLE VERSION
Network OS
n/a for this report.
SUMMARY
STEPS TO REPRODUCE
EXPECTED RESULTS
Lint checks should not report any results. Almost all of the items above are very minor and trivial to fix.
The one deprecated feature may take longer to resolve.
ACTUAL RESULTS
https://docs.ansible.com/ansible/devel/dev_guide/testing/sanity/
I was not able to test with your published sanity checker. The above commands were available, and did produce reasonable items, so they were used instead.