from typing import List
import json


def get_checks_from_appinspect_result(path: str) -> List[str]:
    """
    Returns manual checks from appinspect json result file

    :param path: path to json result file
    :return: list of checks in string format
    """
    manual_checks = []
    with open(path) as f:
        appinspect_results = json.load(f)
        for report in appinspect_results["reports"]:
            for group in report["groups"]:
                for check in group["checks"]:
                    if check["result"] == "manual_check":
                        manual_checks.append(check["name"])
    return manual_checks