Make Reporter class hold all results, move line/col into results, and out of message (#24127)

* Make Reporter class hold all results, move line/col into results, and out of message

* Move line/col out of message for YAML parser errors

* We have lineno for the DOC var, use it for YAML parser errors

* Remove valdiate-modules files from legacy-files

* pep8 indentation fixes

* Add todo for line/col in _validate_docs_schema
This commit is contained in:
Matt Martz 2017-05-03 10:25:08 -05:00 committed by GitHub
commit 2fbfba0ef3
5 changed files with 385 additions and 226 deletions

View file

@ -81,6 +81,7 @@ def return_schema(data):
extra=PREVENT_EXTRA
)
def doc_schema(module_name):
if module_name.startswith('_'):
module_name = module_name[1:]
@ -116,7 +117,6 @@ def metadata_schema(deprecated):
)
# Things to add soon
####################
# 1) Recursively validate `type: complex` fields