Skip to content

Instantly share code, notes, and snippets.

@tsega
Created May 23, 2020 05:55
Show Gist options
  • Save tsega/33e39a5a959adc880ba94820e5b4ab2d to your computer and use it in GitHub Desktop.
Save tsega/33e39a5a959adc880ba94820e5b4ab2d to your computer and use it in GitHub Desktop.
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