MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / CheckItemIndentationInNamespace

Function CheckItemIndentationInNamespace

src/tests/coding/cpplint.py:6327–6332  ·  view source on GitHub ↗
(filename, raw_lines_no_comments, linenum,
                                    error)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

MatchFunction · 0.70

Tested by

no test coverage detected