diff --git a/README.md b/README.md index a8b05aa..bf8703a 100644 --- a/README.md +++ b/README.md @@ -2,27 +2,20 @@ Apply automatic fixes on your Drupal 8 code. -Check it in action on [Travis CI](https://travis-ci.org/drupal8-rector/drupal8-rector/builds). - ## Installation Install the library. ```bash -$ composer require --dev drupal8-rector/drupal8-rector +$ composer require --dev palantirnet/drupal8-rector ``` Create a rector.yml file in the Drupal 8 root. ```yml imports: - - { resource: "%vendor_dir%/drupal8-rector/drupal8-rector/config/drupal8.yml" } - - { resource: "%vendor_dir%/drupal8-rector/drupal8-rector/config/drupal86-deprecations.yml" } - # Import drupal8-php71.yml ruleset if your module's minimum requirement - # is PHP >= 7.1. - # - { resource: "%vendor_dir%/drupal8-rector/drupal8-rector/config/drupal8-php71.yml" } - # Enable EXPERIMENTAL rectors. - # - { resource: "%vendor_dir%/drupal8-rector/drupal8-rector/config/drupal8-experimental.yml" } + - { resource: "vendor/palantirnet/drupal8-rector/config/drupal8.yml" } + # - { resource: "config/drupal8.yml" } parameters: autoload_paths: @@ -33,11 +26,8 @@ parameters: - '*/Tests/*' services: - # Optionally enable ReturnTypeDeclarationRector rector if your - # code is PHP >= 7.1 compatible. It is disabled by default - # because it may cause problems. - # Drupal8Rector\Rector\FunctionLike\ReturnTypeDeclarationRectorProxy: ~ ``` + # Suggested workflow 1. Analyze your code with Rector and review suggested changes: @@ -71,10 +61,6 @@ $ vendor/bin/phpunit -c web/core --printer="\Drupal\Tests\Listeners\HtmlOutputPr You can find more information about Rector [here](https://github.com/rectorphp/rector). -## Known issues - -* Rector conflict with the PHPUnit version (^6.5 required by webflo/drupal-core-require-dev package) on the required minimum version from sebastian/diff package. Possible solution: temporarily remove webflo/drupal-core-require-dev package while you are testing this library. - ## Roadmap This is just a POC at this moment but it has a great potential to become an actual development tool for Drupal 8. @@ -83,4 +69,5 @@ This is just a POC at this moment but it has a great potential to become an actu ## Credits -Initial development is sponsored by [Pronovix](https://pronovix.com). +Initial development is sponsored by [Pronovix](https://pronovix.com).
+Additional development is sponsored by [Palantir.net](https://www.palantir.net). diff --git a/composer.json b/composer.json index 998891a..a4d470a 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "drupal8-rector/drupal8-rector", + "name": "palantirnet/drupal8-rector", "description": "Instant fixes for your Drupal 8 code by using Rector.", "type": "library", "keywords": [ @@ -21,6 +21,14 @@ { "name": "Dezső Biczó", "email": "mxr576@gmail.com" + }, + { + "name": "Ofer Shaal", + "email": "shaal@palantir.net" + }, + { + "name": "Daniel Montgomery", + "email": "montgomery@palantir.net" } ], "autoload": { @@ -34,6 +42,9 @@ "preferred-install": "dist", "sort-packages": true }, + "replace": { + "drupal8-rector/drupal8-rector": "*" + }, "minimum-stability": "dev", "prefer-stable": true, "scripts": { diff --git a/rector.dev.yml b/rector.dev.yml index e76f066..0a4744c 100644 --- a/rector.dev.yml +++ b/rector.dev.yml @@ -1,5 +1,5 @@ imports: - # - { resource: "vendor/drupal8-rector/drupal8-rector/config/drupal8.yml" } + # - { resource: "vendor/palantirnet/drupal8-rector/config/drupal8.yml" } - { resource: "config/drupal8.yml" } parameters: diff --git a/rector.main.yml b/rector.main.yml index edcc056..29b3ece 100644 --- a/rector.main.yml +++ b/rector.main.yml @@ -1,5 +1,5 @@ imports: - - { resource: "vendor/drupal8-rector/drupal8-rector/config/drupal8.yml" } + - { resource: "vendor/palantirnet/drupal8-rector/config/drupal8.yml" } # - { resource: "config/drupal8.yml" } parameters: diff --git a/rector.yml b/rector.yml index edcc056..29b3ece 100644 --- a/rector.yml +++ b/rector.yml @@ -1,5 +1,5 @@ imports: - - { resource: "vendor/drupal8-rector/drupal8-rector/config/drupal8.yml" } + - { resource: "vendor/palantirnet/drupal8-rector/config/drupal8.yml" } # - { resource: "config/drupal8.yml" } parameters: