1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-02 07:41:32 +00:00

We weren't noting missing docblock comments.

Due to a very python-noob mistake.
This commit is contained in:
Peter Evans 2018-01-11 22:42:19 -06:00
parent 1b2e9d952b
commit a1435de0ad

View File

@ -74,7 +74,7 @@ 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'):
if lines[linenum].find('// ignore docblock') > -1:
return True
return linenum-2 >= 0 and (lines[linenum-2] == ' */' or lines[linenum-1] == ' */')