You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
will check custom modules or themes, but won't check modules/themes installed for the multisite.
Ideas
Have a new blt command (ex: blt tests:deprecated:multisite) that would run against all sites in the multisite
Add an option to include the multisite in existing commands
something else
Feedback
I wanted to see what people thought of this direction. Right now I'm patching the DrupalCheckCommand.php for my use case, so I don't have an immediate need for this functionality. Maybe someone else would need this and it could be helpful.
// Get all sites in multisite
$multisites = $this->getConfigValue('multisites');
foreach ($multisites as $multisite) {
$this->say("Checking for Deprecated Code in docroot/sites/$multisite/$type/custom");
$result = $this->taskExecStack()
->dir($this->getConfigValue('repo.root'))
->exec("$bin/drupal-check -d $docroot/sites/$multisite/$type/custom")
->run();
$exit_code = $result->getExitCode();
if ($exit_code) {
$this->logger->notice('Review Deprecation warnings and re-run.');
throw new BltException("Drupal Check in docroot/$type/custom failed.");
}
}