mirror of
https://github.com/ivuorinen/monolog-gdpr-filter.git
synced 2026-03-11 16:00:46 +00:00
feat: initial commit
This commit is contained in:
28
rector.php
Normal file
28
rector.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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);
|
||||
}
|
||||
Reference in New Issue
Block a user