def _require_sufficient_configuration(configuration):
    """Ensures the provided configuration is sufficient for precommit analysis."""
    if not configuration.is_sufficient(require_project_id=True):
        raise RuntimeError(
            'Not all necessary parameters specified in configuration file %s' %
            configuration.config_file)
