MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / IsBlankLine

Function IsBlankLine

steps/cpplint.py:3527–3539  ·  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

3525
3526
3527def IsBlankLine(line):
3528 """Returns true if the given line is blank.
3529
3530 We consider a line to be blank if the line is empty or consists of
3531 only white spaces.
3532
3533 Args:
3534 line: A line of a string.
3535
3536 Returns:
3537 True, if the given line is blank.
3538 """
3539 return not line or line.isspace()
3540
3541
3542def 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