Skip to content

Instantly share code, notes, and snippets.

@tsega

tsega/rector.yml

Created May 23, 2020
Embed
What would you like to do?
Sample Drupal Rector configuration file
imports:
- { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8-all-deprecations.yml" }
# includes:
# - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.0-deprecations.yml" }
# - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.4-deprecations.yml" }
# - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.5-deprecations.yml" }
# - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.6-deprecations.yml" }
# - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.7-deprecations.yml" }
parameters:
autoload_paths:
- 'web/core'
- 'web/core/modules'
- 'web/modules/contrib'
- 'web/themes/contrib'
- 'web/profiles'
file_extensions:
- module
- theme
- install
- profile
- inc
- engine
# Create `use` statements.
auto_import_names: true
# Do not convert `\Drupal` to `Drupal`, etc.
import_short_classes: false
# This will not import classes used in PHP DocBlocks, like in /** @var \Some\Class */
import_doc_blocks: false
services: ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.