mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-21 23:29:16 +00:00
We weren't noting missing docblock comments.
Due to a very python-noob mistake.
This commit is contained in:
parent
1b2e9d952b
commit
a1435de0ad
@ -74,7 +74,7 @@ def test_name_from_func(suite, func):
|
|||||||
# not. (Which we can determine because there should be a closing comment
|
# not. (Which we can determine because there should be a closing comment
|
||||||
# token on the line above the type.)
|
# token on the line above the type.)
|
||||||
def has_doc_block(lines, linenum):
|
def has_doc_block(lines, linenum):
|
||||||
if lines[linenum].find('// ignore docblock'):
|
if lines[linenum].find('// ignore docblock') > -1:
|
||||||
return True
|
return True
|
||||||
return linenum-2 >= 0 and (lines[linenum-2] == ' */' or lines[linenum-1] == ' */')
|
return linenum-2 >= 0 and (lines[linenum-2] == ' */' or lines[linenum-1] == ' */')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user