services(); $services->set(ReturnArrayClassMethodToYieldRector::class) ->call('configure', [[ ReturnArrayClassMethodToYieldRector::METHODS_TO_YIELDS => inline_value_objects([ new MethodToYield(TestCase::class, 'provideData'), new MethodToYield(TestCase::class, 'provideData*'), new MethodToYield(TestCase::class, 'dataProvider'), new MethodToYield(TestCase::class, 'dataProvider*'), ]), ]]); $parameters = $containerConfigurator->parameters(); $parameters->set(Option::SETS, [ SetList::CODING_STYLE, SetList::CODE_QUALITY, SetList::DEAD_CODE, SetList::NETTE_UTILS_CODE_QUALITY, SetList::SOLID, SetList::PRIVATIZATION, SetList::NAMING, SetList::ORDER, SetList::DEFLUENT, ]); $parameters->set(Option::PATHS, [ __DIR__ . '/src', __DIR__ . '/rules', __DIR__ . '/packages', __DIR__ . '/tests', __DIR__ . '/utils', __DIR__ . '/compiler/src', __DIR__ . '/compiler/bin/compile', __DIR__ . '/compiler/build/scoper.inc.php', __DIR__ . '/config/set', ]); $parameters->set(Option::AUTO_IMPORT_NAMES, true); $parameters->set(Option::AUTOLOAD_PATHS, [__DIR__ . '/compiler/src']); $parameters->set(Option::EXCLUDE_PATHS, [ '/Fixture/', '/Source/', '/Expected/', __DIR__ . '/packages/doctrine-annotation-generated/src/*', // tempalte files __DIR__ . '/packages/rector-generator/templates/*', // public api __DIR__ . '/packages/rector-generator/src/ValueObject/RectorRecipe.php', __DIR__ . '/rules/symfony-php-config/functions/functions.php', ]); $parameters->set(Option::EXCLUDE_RECTORS, [ StringClassNameToClassConstantRector::class, SplitStringClassConstantToClassConstFetchRector::class, // false positives on constants used in rector-ci.php RemoveUnusedClassConstantRector::class, ]); };