MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / CheckItemIndentationInNamespace

Function CheckItemIndentationInNamespace

steps/cpplint.py:6340–6345  ·  view source on GitHub ↗
(filename, raw_lines_no_comments, linenum,
                                    error)

Source from the content-addressed store, hash-verified

6338# If the line above is blank (excluding comments) or the start of
6339# an inner namespace, it cannot be indented.
6340def CheckItemIndentationInNamespace(filename, raw_lines_no_comments, linenum,
6341 error):
6342 line = raw_lines_no_comments[linenum]
6343 if Match(r'^\s+', line):
6344 error(filename, linenum, 'runtime/indentation_namespace', 4,
6345 'Do not indent within a namespace')
6346
6347
6348def ProcessLine(filename, file_extension, clean_lines, line,

Callers 1

Calls 1

MatchFunction · 0.85

Tested by

no test coverage detected