<?php

declare(strict_types=1);
/**
 * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

use Nextcloud\Rector\Set\NextcloudSets;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
	->withPaths([
		__DIR__ . '/appinfo',
		__DIR__ . '/lib',
		__DIR__ . '/templates',
		__DIR__ . '/tests/php',
	])
	->withSkipPath(__DIR__ . '/lib/Vendor')
	->withPhpSets(php73: true)
	->withSets([
		NextcloudSets::NEXTCLOUD_27,
	])
	->withTypeCoverageLevel(0);