MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / CodeBlockIndentationDiagnostic

Class CodeBlockIndentationDiagnostic

tools/check_code_block_format.py:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86class CodeBlockIndentationDiagnostic(Diagnostic):
87 def __init__(
88 self,
89 start: int,
90 code_block: CodeBlock,
91 suggestions: list[CodeBlockModifySuggestion] = [],
92 ):
93 super().__init__(
94 start,
95 "The code under code-block directive should be indented properly. The issue found in:\n"
96 + format_code_block_with_suggestions(code_block, suggestions),
97 )
98
99
100class CodeBlockFollowsBlankLineDiagnostic(Diagnostic):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected