Skip to content

Instantly share code, notes, and snippets.

@ainsofs
Last active April 9, 2024 20:58
Show Gist options
  • Save ainsofs/102f5cd6fb9d8a7a69deb256c3834fc4 to your computer and use it in GitHub Desktop.
Save ainsofs/102f5cd6fb9d8a7a69deb256c3834fc4 to your computer and use it in GitHub Desktop.

install upgrade status

composer require drupal/upgrade_status --dev
drush en upgrade_status

analyse custom modules

drush upgrade_status:analyze --all --ignore-contrib

install drupal rector for automated fixes

composer require --dev palantirnet/drupal-rector -W
cp vendor/palantirnet/drupal-rector/rector.php .

analyse custom modules

vendor/bin/rector process web/*/custom --dry-run

auto fix custom modules

vendor/bin/rector process web/*/custom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment