@@ -331,6 +331,7 @@ def parseFile(self):
331
331
# Or perhaps we just fix it on request
332
332
333
333
if not found_first_relevant_content and not stripped_line :
334
+ #print(f"DEBUG: found_first_relevant_content (false): comment line: {stripped_line}")
334
335
continue
335
336
if not found_first_relevant_content and stripped_line :
336
337
found_first_relevant_content = True
@@ -343,7 +344,7 @@ def parseFile(self):
343
344
344
345
if gettingInitialComments and stripped_line .startswith ("#" ):
345
346
stripped_line = stripped_line [1 :].strip ()
346
- #print(f"comment line: {stripped_line}")
347
+ #print(f"DEBUG: gettingInitialComments: comment line: {stripped_line}")
347
348
initial_block_lines .append (stripped_line )
348
349
else :
349
350
gettingInitialComments = False
@@ -400,7 +401,7 @@ def camel_to_snake(name):
400
401
error = Error ("topic_error" , self .filename , "" , f"NOTE: TOPIC - Default topic { defaultTopic } for { self .name } not in { self .topics } " )
401
402
402
403
# Parse our short and long description
403
- #print(f"TODO : initial_block_lines: {initial_block_lines}")
404
+ #print(f"DEBUG : initial_block_lines: {initial_block_lines}")
404
405
doingLongDescription = False
405
406
for summaryline in initial_block_lines :
406
407
if not self .shortDescription and summaryline .strip () == '' :
@@ -414,15 +415,16 @@ def camel_to_snake(name):
414
415
if doingLongDescription :
415
416
self .longDescription += f"{ summaryline } \n "
416
417
417
- else :
418
+ if self .longDescription :
419
+ self .longDescription .strip ()
420
+
421
+ if not self .shortDescription :
418
422
# Summary has not been defined
419
423
error = Error ("summary_missing" , self .filename )
420
424
if not "summary_missing" in self .errors :
421
425
self .errors ["summary_missing" ] = []
422
426
self .errors ["summary_missing" ].append (error )
423
427
424
- if self .longDescription :
425
- self .longDescription .strip ()
426
428
427
429
# TODO Parse our enumvalues into enums, leaving only constants
428
430
enumValuesToRemove = []
0 commit comments