1
0
mirror of https://github.com/pevans/erc-c.git synced 2026-04-25 12:17:19 +00:00

Allow us to ignore some docblock errors

This commit is contained in:
Peter Evans
2018-01-07 20:08:46 -06:00
parent 62035d03b8
commit 3f59db311b
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -74,6 +74,8 @@ def test_name_from_func(suite, func):
# not. (Which we can determine because there should be a closing comment
# token on the line above the type.)
def has_doc_block(lines, linenum):
if lines[linenum].find('// ignore docblock'):
return True
return linenum-2 >= 0 and (lines[linenum-2] == ' */' or lines[linenum-1] == ' */')
# Do we have a test for this function? The fname is the test file, and