MCPcopy Index your code
hub / github.com/nodejs/node / CheckItemIndentationInNamespace

Function CheckItemIndentationInNamespace

tools/cpplint.py:7405–7410  ·  view source on GitHub ↗
(filename, raw_lines_no_comments, linenum, error)

Source from the content-addressed store, hash-verified

7403# If the line above is blank (excluding comments) or the start of
7404# an inner namespace, it cannot be indented.
7405def CheckItemIndentationInNamespace(filename, raw_lines_no_comments, linenum, error):
7406 line = raw_lines_no_comments[linenum]
7407 if re.match(r"^\s+", line):
7408 error(
7409 filename, linenum, "whitespace/indent_namespace", 4, "Do not indent within a namespace."
7410 )
7411
7412
7413def CheckLocalVectorUsage(filename, lines, error):

Callers 1

Calls 2

matchMethod · 0.65
errorFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…