MCPcopy Create free account
hub / github.com/apache/mesos / CheckItemIndentationInNamespace

Function CheckItemIndentationInNamespace

support/cpplint.py:5772–5777  ·  view source on GitHub ↗
(filename, raw_lines_no_comments, linenum,
                                    error)

Source from the content-addressed store, hash-verified

5770# If the line above is blank (excluding comments) or the start of
5771# an inner namespace, it cannot be indented.
5772def CheckItemIndentationInNamespace(filename, raw_lines_no_comments, linenum,
5773 error):
5774 line = raw_lines_no_comments[linenum]
5775 if Match(r'^\s+', line):
5776 error(filename, linenum, 'runtime/indentation_namespace', 4,
5777 'Do not indent within a namespace')
5778
5779
5780def ProcessLine(filename, file_extension, clean_lines, line,

Callers 1

Calls 2

MatchFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected