SwcIssue#

class braincell.io.SwcIssue(level, code, message, line_number=None, node_id=None, fix_message=None, fix_applied=False)[source]#

An Issue carrying SWC node context.

Adds the offending node_id to the block header and, when the rule offers a repair, a trailing fix: line marked (applied) if the reader actually performed it.

location_parts()[source]#

Return the comma-joined location fragments for the block header.

Return type:

list[str]

trailing_lines()[source]#

Return extra lines rendered after the message.

Return type:

list[str]