Skip to content

Commit

Permalink
add number of Errors, Warnings to scripts/validate_docstrings.py (pan…
Browse files Browse the repository at this point in the history
  • Loading branch information
hongshaoyang authored and tm9k1 committed Nov 19, 2018
1 parent 25e6f95 commit 67a9115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/validate_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,11 +610,11 @@ def header(title, width=80, char='#'):
fd.write('{}\n'.format(doc_info['docstring']))
fd.write(header('Validation'))
if doc_info['errors']:
fd.write('Errors found:\n')
fd.write('{} Errors found:\n'.format(len(doc_info['errors'])))
for err in doc_info['errors']:
fd.write('\t{}\n'.format(err))
if doc_info['warnings']:
fd.write('Warnings found:\n')
fd.write('{} Warnings found:\n'.format(len(doc_info['warnings'])))
for wrn in doc_info['warnings']:
fd.write('\t{}\n'.format(wrn))

Expand Down

0 comments on commit 67a9115

Please sign in to comment.