MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / IsBlankLine

Function IsBlankLine

rtpose_wrapper/scripts/cpp_lint.py:2369–2381  ·  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

2367
2368
2369def IsBlankLine(line):
2370 """Returns true if the given line is blank.
2371
2372 We consider a line to be blank if the line is empty or consists of
2373 only white spaces.
2374
2375 Args:
2376 line: A line of a string.
2377
2378 Returns:
2379 True, if the given line is blank.
2380 """
2381 return not line or line.isspace()
2382
2383
2384def CheckForFunctionLengths(filename, clean_lines, linenum,

Callers 3

CheckSpacingFunction · 0.85
CheckSectionSpacingFunction · 0.85
GetPreviousNonBlankLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected