def checkSourcePath(file_path):
    error_messages = checkFileContents(file_path, checkSourceLine)
    if (not file_path.endswith(DOCS_SUFFIX)):
        if (not file_path.endswith(PROTO_SUFFIX)):
            error_messages += checkNamespace(file_path)
            command = ('%s --include_dir_order %s --path %s | diff %s -' % (HEADER_ORDER_PATH, include_dir_order, file_path, file_path))
            error_messages += executeCommand(command, 'header_order.py check failed', file_path)
        command = ('%s %s | diff %s -' % (CLANG_FORMAT_PATH, file_path, file_path))
        error_messages += executeCommand(command, 'clang-format check failed', file_path)
    if (file_path.endswith(PROTO_SUFFIX) and isApiFile(file_path)):
        (package_name, error_message) = packageNameForProto(file_path)
        if (package_name is None):
            error_messages += error_message
    return error_messages
def checkSourcePath(file_path):
    error_messages = checkFileContents(file_path, checkSourceLine)
    if (not file_path.endswith(DOCS_SUFFIX)):
        if (not file_path.endswith(PROTO_SUFFIX)):
            error_messages += checkNamespace(file_path)
            command = ('%s --include_dir_order %s --path %s | diff %s -' % (HEADER_ORDER_PATH, include_dir_order, file_path, file_path))
            error_messages += executeCommand(command, 'header_order.py check failed', file_path)
        command = ('%s %s | diff %s -' % (CLANG_FORMAT_PATH, file_path, file_path))
        error_messages += executeCommand(command, 'clang-format check failed', file_path)
    if (file_path.endswith(PROTO_SUFFIX) and isApiFile(file_path)):
        (package_name, error_message) = packageNameForProto(file_path)
        if (package_name is None):
            error_messages += error_message
    return error_messages