MCPcopy Create free account
hub / github.com/alibaba/GraphScope / IsBlankLine

Function IsBlankLine

analytical_engine/misc/cpplint.py:3516–3528  ·  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

3514
3515
3516def IsBlankLine(line):
3517 """Returns true if the given line is blank.
3518
3519 We consider a line to be blank if the line is empty or consists of
3520 only white spaces.
3521
3522 Args:
3523 line: A line of a string.
3524
3525 Returns:
3526 True, if the given line is blank.
3527 """
3528 return not line or line.isspace()
3529
3530
3531def 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