MCPcopy Index your code
hub / github.com/nodejs/node / IsBlankLine

Function IsBlankLine

tools/cpplint.py:4041–4053  ·  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

4039
4040
4041def IsBlankLine(line):
4042 """Returns true if the given line is blank.
4043
4044 We consider a line to be blank if the line is empty or consists of
4045 only white spaces.
4046
4047 Args:
4048 line: A line of a string.
4049
4050 Returns:
4051 True, if the given line is blank.
4052 """
4053 return not line or line.isspace()
4054
4055
4056def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line, error):

Callers 3

CheckSpacingFunction · 0.85
CheckSectionSpacingFunction · 0.85
GetPreviousNonBlankLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…