Skip to content

Instantly share code, notes, and snippets.

@nerdstein
Created May 5, 2020 14:31
Show Gist options
  • Select an option

  • Save nerdstein/1374b5fa5d9fa44e472f03dc603712c6 to your computer and use it in GitHub Desktop.

Select an option

Save nerdstein/1374b5fa5d9fa44e472f03dc603712c6 to your computer and use it in GitHub Desktop.
rector.yml
# From: https://github.com/palantirnet/drupal-rector/blob/master/rector.yml
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'
- '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