def fixSourcePath(file_path):
    replaceLines(file_path, fixSourceLine)
    error_messages = []
    if (not file_path.endswith(DOCS_SUFFIX)):
        if (not file_path.endswith(PROTO_SUFFIX)):
            error_messages += fixHeaderOrder(file_path)
        error_messages += clangFormat(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 fixSourcePath(file_path):
    replaceLines(file_path, fixSourceLine)
    error_messages = []
    if (not file_path.endswith(DOCS_SUFFIX)):
        if (not file_path.endswith(PROTO_SUFFIX)):
            error_messages += fixHeaderOrder(file_path)
        error_messages += clangFormat(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