mirror of
https://github.com/pevans/erc-c.git
synced 2024-10-08 23:55:39 +00:00
Allow us to ignore some docblock errors
This commit is contained in:
parent
62035d03b8
commit
3f59db311b
@ -93,6 +93,6 @@ objstore_ready()
|
||||
* screwing up my indent, to be honest. But C will ignore the
|
||||
* semicolons, so all is well.
|
||||
*/
|
||||
OBJSTORE_DEFN(apple2_sys_rom);
|
||||
OBJSTORE_DEFN(apple2_disk2_rom);
|
||||
OBJSTORE_DEFN(apple2_sysfont);
|
||||
OBJSTORE_DEFN(apple2_sys_rom); // ignore docblock
|
||||
OBJSTORE_DEFN(apple2_disk2_rom); // ignore docblock
|
||||
OBJSTORE_DEFN(apple2_sysfont); // ignore docblock
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user