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

Function IsBlankLine

support/cpplint.py:3020–3032  ·  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

3018
3019
3020def IsBlankLine(line):
3021 """Returns true if the given line is blank.
3022
3023 We consider a line to be blank if the line is empty or consists of
3024 only white spaces.
3025
3026 Args:
3027 line: A line of a string.
3028
3029 Returns:
3030 True, if the given line is blank.
3031 """
3032 return not line or line.isspace()
3033
3034
3035def 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