(start, config_lines, indent, errors)
return True
Returns true if the block starting at line 'start' only contains comments and no @param declaration nor
    setting any variable.
Returns true if the block starting at line 'start' only contains comments and no
Returns true if the block starting at line start only contains comments and no
def _is_comment(start, config_lines, indent, errors):
    """Returns true if the block starting at line 'start' only contains comments and no @param declaration nor
    setting any variable.
    """

    regex = COMMENT_REGEX.replace('INDENT', str(indent))
    idx = start
    end = len(config_lines)
    if "## @param" in config_lines[idx]:
        # If we see @param, no matter how correctly formatted it is, we expect it to be a param declaration
        return False

    while idx < end:
        current_line = config_lines[idx]
        if re.match(regex, current_line):
            idx += 1
            continue
        elif is_blank(current_line):
            # End of block with only ## comments, the whole block is indeed only a comment
            return True
        elif re.match(INCORRECTLY_INDENTED_COMMENT_REGEX, current_line):
            # This is still a comment but incorrectly indented
            errors.append(ValidatorError("Comment block incorrectly indented", idx))
            idx += 1
            continue
        else:
            return False

    return True
def _is_comment ( start , config_lines , indent , errors ) : regex = COMMENT_REGEX . replace ( 'INDENT' , str ( indent ) ) idx = start end = len ( config_lines ) if "## @param" in config_lines [ idx ] : # If we see @param, no matter how correctly formatted it is, we expect it to be a param declaration return False while idx < end : current_line = config_lines [ idx ] if re . match ( regex , current_line ) : idx += 1 continue elif is_blank ( current_line ) : # End of block with only ## comments, the whole block is indeed only a comment return True elif re . match ( INCORRECTLY_INDENTED_COMMENT_REGEX , current_line ) : # This is still a comment but incorrectly indented errors . append ( ValidatorError ( "Comment block incorrectly indented" , idx ) ) idx += 1 continue else : return False return True