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

Function CheckItemIndentationInNamespace

analytical_engine/misc/cpplint.py:6330–6335  ·  view source on GitHub ↗
(filename, raw_lines_no_comments, linenum,
                                    error)

Source from the content-addressed store, hash-verified

6328# If the line above is blank (excluding comments) or the start of
6329# an inner namespace, it cannot be indented.
6330def CheckItemIndentationInNamespace(filename, raw_lines_no_comments, linenum,
6331 error):
6332 line = raw_lines_no_comments[linenum]
6333 if Match(r'^\s+', line):
6334 error(filename, linenum, 'runtime/indentation_namespace', 4,
6335 'Do not indent within a namespace')
6336
6337
6338def ProcessLine(filename, file_extension, clean_lines, line,

Callers 1

Calls 1

MatchFunction · 0.70

Tested by

no test coverage detected