mirror of
https://github.com/ivuorinen/monolog-gdpr-filter.git
synced 2026-01-26 11:44:04 +00:00
29 lines
753 B
PHP
29 lines
753 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Exception\Configuration\InvalidConfigurationException;
|
|
|
|
try {
|
|
return RectorConfig::configure()
|
|
->withPaths([
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/tests',
|
|
])
|
|
->withPhpVersion(80200)
|
|
->withPhpSets(php82: true)
|
|
->withComposerBased(phpunit: true)
|
|
->withImportNames(removeUnusedImports: true)
|
|
->withPreparedSets(
|
|
deadCode: true,
|
|
codeQuality: true,
|
|
codingStyle: true,
|
|
earlyReturn: true,
|
|
phpunitCodeQuality: true
|
|
);
|
|
} catch (InvalidConfigurationException $e) {
|
|
echo "Configuration error: " . $e->getMessage() . PHP_EOL;
|
|
exit(1);
|
|
}
|