From 71545ca720c60a9e17f014606b2196524ca6a766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Wed, 18 Sep 2024 18:38:48 +0200 Subject: [PATCH] chore: Add nextcloud/rector dependency and nextcloud sets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- rector.php | 9 ++++- vendor-bin/rector/composer.json | 3 +- vendor-bin/rector/composer.lock | 64 ++++++++++++++++++++++++++++++++- 3 files changed, 73 insertions(+), 3 deletions(-) diff --git a/rector.php b/rector.php index 0e2521f..457abeb 100644 --- a/rector.php +++ b/rector.php @@ -2,6 +2,7 @@ declare(strict_types=1); +use Nextcloud\Rector\Set\NextcloudSets; use Rector\Config\RectorConfig; return RectorConfig::configure() @@ -11,4 +12,10 @@ __DIR__ . '/tests', ]) ->withPhpSets(php81: true) - ->withTypeCoverageLevel(0); + ->withTypeCoverageLevel(0) + ->withSets([ + NextcloudSets::NEXTCLOUD_25, + NextcloudSets::NEXTCLOUD_26, + NextcloudSets::NEXTCLOUD_27, + NextcloudSets::NEXTCLOUD_ALL, + ]); diff --git a/vendor-bin/rector/composer.json b/vendor-bin/rector/composer.json index a266a58..e242c63 100644 --- a/vendor-bin/rector/composer.json +++ b/vendor-bin/rector/composer.json @@ -1,5 +1,6 @@ { "require-dev": { - "rector/rector": "^1.2" + "rector/rector": "^1.2", + "nextcloud/rector": "^0.1.0" } } diff --git a/vendor-bin/rector/composer.lock b/vendor-bin/rector/composer.lock index 849e094..9f537a1 100644 --- a/vendor-bin/rector/composer.lock +++ b/vendor-bin/rector/composer.lock @@ -4,9 +4,71 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "eb58f3061bde78d58fa424c73947025f", + "content-hash": "3f132e10aa64acdbd6137cf3d11232c0", "packages": [], "packages-dev": [ + { + "name": "nextcloud/rector", + "version": "v0.1.0", + "source": { + "type": "git", + "url": "https://github.com/nextcloud-libraries/rector.git", + "reference": "f88640d66dd18c900a9c08da4c6001a82abc972b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nextcloud-libraries/rector/zipball/f88640d66dd18c900a9c08da4c6001a82abc972b", + "reference": "f88640d66dd18c900a9c08da4c6001a82abc972b", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.5", + "ramsey/devtools": "^2.0", + "rector/rector": "^1.2" + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + }, + "ramsey/devtools": { + "command-prefix": "dev", + "memory-limit": "-1" + } + }, + "autoload": { + "psr-4": { + "Nextcloud\\Rector\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "AGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Christoph Wurst", + "email": "christoph@winzerhof-wurst.at", + "homepage": "https://wuc.me" + } + ], + "description": "Rector upgrade rules for Nextcloud", + "keywords": [ + "nextcloud", + "refactoring" + ], + "support": { + "issues": "https://github.com/nextcloud-libraries/rector/issues", + "source": "https://github.com/nextcloud-libraries/rector/tree/v0.1.0" + }, + "time": "2024-09-18T12:33:43+00:00" + }, { "name": "phpstan/phpstan", "version": "1.12.3",