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

Function IsBlankLine

src/tests/coding/cpplint.py:3513–3525  ·  view source on GitHub ↗

Returns true if the given line is blank. We consider a line to be blank if the line is empty or consists of only white spaces. Args: line: A line of a string. Returns: True, if the given line is blank.

(line)

Source from the content-addressed store, hash-verified

3511
3512
3513def IsBlankLine(line):
3514 """Returns true if the given line is blank.
3515
3516 We consider a line to be blank if the line is empty or consists of
3517 only white spaces.
3518
3519 Args:
3520 line: A line of a string.
3521
3522 Returns:
3523 True, if the given line is blank.
3524 """
3525 return not line or line.isspace()
3526
3527
3528def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line,

Callers 3

CheckSpacingFunction · 0.85
CheckSectionSpacingFunction · 0.85
GetPreviousNonBlankLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected