MCPcopy Create free account
hub / github.com/alibaba/GraphScope / CheckForNamespaceIndentation

Function CheckForNamespaceIndentation

analytical_engine/misc/cpplint.py:3531–3542  ·  view source on GitHub ↗
(filename, nesting_state, clean_lines, line,
                                 error)

Source from the content-addressed store, hash-verified

3529
3530
3531def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line,
3532 error):
3533 is_namespace_indent_item = (
3534 len(nesting_state.stack) > 1 and
3535 nesting_state.stack[-1].check_namespace_indentation and
3536 isinstance(nesting_state.previous_stack_top, _NamespaceInfo) and
3537 nesting_state.previous_stack_top == nesting_state.stack[-2])
3538
3539 if ShouldCheckNamespaceIndentation(nesting_state, is_namespace_indent_item,
3540 clean_lines.elided, line):
3541 CheckItemIndentationInNamespace(filename, clean_lines.elided,
3542 line, error)
3543
3544
3545def CheckForFunctionLengths(filename, clean_lines, linenum,

Callers 1

ProcessLineFunction · 0.85

Tested by

no test coverage detected