def METHOD_NAME(
    self, current_file, file_type, file_path, ignored_errors=None
):
    """Check if the file is valid in the conf.json"""
    if ignored_errors:
        self.ignored_errors = ignored_errors
    entity_id = _get_file_id(file_type.value, current_file)
    if file_type in {FileType.INTEGRATION, FileType.BETA_INTEGRATION}:
        return self.integration_has_unskipped_test_playbook(
            current_file, entity_id, file_path
        )
    if file_type == FileType.SCRIPT:
        return self.has_unskipped_test_playbook(
            current_file=current_file, entity_id=entity_id, file_path=file_path
        )
    return True