(
    content: str, filemode: Filemode, is_patch: bool, show_secrets: bool
)
return list(get_lines_from_file(content))
Return the secrets and the lines with line number.

    :param scan_result: Scan result from the API call
    :param show_secrets: Option to hide secrets value
    :param is_patch: Is the content a patch
Return the secrets and the lines with line number.
Return the secrets and the lines with line number .
def get_lines_from_content(
    content: str, filemode: Filemode, is_patch: bool, show_secrets: bool
) -> List[Line]:
    """
    Return the secrets and the lines with line number.

    :param scan_result: Scan result from the API call
    :param show_secrets: Option to hide secrets value
    :param is_patch: Is the content a patch
    """

    # Patch
    if is_patch:
        return list(get_lines_from_patch(content, filemode))

    # File
    return list(get_lines_from_file(content))
def get_lines_from_content ( content : str , filemode : Filemode , is_patch : bool , show_secrets : bool ) -> List [ Line ] : # Patch if is_patch : return list ( get_lines_from_patch ( content , filemode ) ) # File return list ( get_lines_from_file ( content ) )