Add yamllint for plugin docs and fix issues.

This commit is contained in:
Matt Clay 2018-05-23 05:49:30 -07:00
parent 0b7932db30
commit 15b6837daf
13 changed files with 50 additions and 19 deletions

View file

@ -34,6 +34,10 @@ class YamllintTest(SanitySingleVersion):
paths = [
[i.path for i in targets.include if os.path.splitext(i.path)[1] in ('.yml', '.yaml')],
[i.path for i in targets.include if os.path.splitext(i.path)[1] == '.py' and
os.path.basename(i.path) != '__init__.py' and
i.path.startswith('lib/ansible/plugins/')],
[i.path for i in targets.include if os.path.splitext(i.path)[1] == '.py' and
os.path.basename(i.path) != '__init__.py' and
i.path.startswith('lib/ansible/modules/')],