@@ -181,12 +181,16 @@ public static function getToolDefinitions(string $filter = 'all'): array {
181181 'present ' => fn (): mixed => File::contains ($ this ->dstDir . '/composer.json ' , 'dealerdirect/phpcodesniffer-composer-installer ' ) ||
182182 File::contains ($ this ->dstDir . '/composer.json ' , 'drupal/coder ' ) ||
183183 File::contains ($ this ->dstDir . '/composer.json ' , 'squizlabs/php_codesniffer ' ) ||
184+ File::contains ($ this ->dstDir . '/composer.json ' , 'phpcompatibility/php-compatibility ' ) ||
185+ File::contains ($ this ->dstDir . '/composer.json ' , 'drevops/phpcs-standard ' ) ||
184186 File::exists ($ this ->dstDir . '/phpcs.xml ' ),
185187 'composer.json ' => function (JsonManipulator $ cj ): void {
186188 $ cj ->removeSubNode ('require-dev ' , 'dealerdirect/phpcodesniffer-composer-installer ' );
187189 $ cj ->removeConfigSetting ('allow-plugins.dealerdirect/phpcodesniffer-composer-installer ' );
188190 $ cj ->removeSubNode ('require-dev ' , 'drupal/coder ' );
189191 $ cj ->removeSubNode ('require-dev ' , 'squizlabs/php_codesniffer ' );
192+ $ cj ->removeSubNode ('require-dev ' , 'phpcompatibility/php-compatibility ' );
193+ $ cj ->removeSubNode ('require-dev ' , 'drevops/phpcs-standard ' );
190194 },
191195 'files ' => ['phpcs.xml ' ],
192196 'strings ' => [
@@ -200,10 +204,13 @@ public static function getToolDefinitions(string $filter = 'all'): array {
200204 'title ' => 'PHPStan ' ,
201205 'present ' => fn (): mixed => File::contains ($ this ->dstDir . '/composer.json ' , 'phpstan/phpstan ' ) ||
202206 File::contains ($ this ->dstDir . '/composer.json ' , 'mglaman/phpstan-drupal ' ) ||
207+ File::contains ($ this ->dstDir . '/composer.json ' , 'phpstan/extension-installer ' ) ||
203208 File::exists ($ this ->dstDir . '/phpstan.neon ' ),
204209 'composer.json ' => function (JsonManipulator $ cj ): void {
205210 $ cj ->removeSubNode ('require-dev ' , 'phpstan/phpstan ' );
206211 $ cj ->removeSubNode ('require-dev ' , 'mglaman/phpstan-drupal ' );
212+ $ cj ->removeSubNode ('require-dev ' , 'phpstan/extension-installer ' );
213+ $ cj ->removeConfigSetting ('allow-plugins.phpstan/extension-installer ' );
207214 },
208215 'files ' => ['phpstan.neon ' ],
209216 'strings ' => [
@@ -220,6 +227,7 @@ public static function getToolDefinitions(string $filter = 'all'): array {
220227 File::exists ($ this ->dstDir . '/rector.php ' ),
221228 'composer.json ' => function (JsonManipulator $ cj ): void {
222229 $ cj ->removeSubNode ('require-dev ' , 'rector/rector ' );
230+ $ cj ->removeSubNode ('require-dev ' , 'palantirnet/drupal-rector ' );
223231 },
224232 'files ' => ['rector.php ' ],
225233 'strings ' => ['/^.*\brector\b.*\n?/m ' ],
@@ -244,9 +252,11 @@ public static function getToolDefinitions(string $filter = 'all'): array {
244252 self ::PHPUNIT => [
245253 'title ' => 'PHPUnit ' ,
246254 'present ' => fn (): mixed => File::contains ($ this ->dstDir . '/composer.json ' , 'phpunit/phpunit ' ) ||
255+ File::contains ($ this ->dstDir . '/composer.json ' , 'phpspec/prophecy-phpunit ' ) ||
247256 File::exists ($ this ->dstDir . '/phpunit.xml ' ),
248257 'composer.json ' => function (JsonManipulator $ cj ): void {
249258 $ cj ->removeSubNode ('require-dev ' , 'phpunit/phpunit ' );
259+ $ cj ->removeSubNode ('require-dev ' , 'phpspec/prophecy-phpunit ' );
250260 $ cj ->removeProperty ('autoload-dev.classmap ' );
251261 $ cj ->removeMainKeyIfEmpty ('autoload-dev ' );
252262 },
@@ -273,11 +283,17 @@ public static function getToolDefinitions(string $filter = 'all'): array {
273283 'title ' => 'Behat ' ,
274284 'present ' => fn (): mixed => File::contains ($ this ->dstDir . '/composer.json ' , 'behat/behat ' ) ||
275285 File::contains ($ this ->dstDir . '/composer.json ' , 'drupal/drupal-extension ' ) ||
286+ File::contains ($ this ->dstDir . '/composer.json ' , 'drevops/behat-format-progress-fail ' ) ||
287+ File::contains ($ this ->dstDir . '/composer.json ' , 'drevops/behat-screenshot ' ) ||
288+ File::contains ($ this ->dstDir . '/composer.json ' , 'drevops/behat-steps ' ) ||
276289 File::exists ($ this ->dstDir . '/behat.yml ' ),
277290 'composer.json ' => function (JsonManipulator $ cj ): void {
278291 $ cj ->removeSubNode ('require-dev ' , 'behat/behat ' );
279292 $ cj ->removeSubNode ('require-dev ' , 'drupal/drupal-extension ' );
280293 $ cj ->removeSubNode ('require-dev ' , 'dantleech/gherkin-lint ' );
294+ $ cj ->removeSubNode ('require-dev ' , 'drevops/behat-format-progress-fail ' );
295+ $ cj ->removeSubNode ('require-dev ' , 'drevops/behat-screenshot ' );
296+ $ cj ->removeSubNode ('require-dev ' , 'drevops/behat-steps ' );
281297 },
282298 'files ' => [
283299 'behat.yml ' ,
0 commit comments