mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
223 lines
12 KiB
JSON
223 lines
12 KiB
JSON
{
|
|
"name": "rector/rector",
|
|
"description": "Instant upgrade and refactoring of your PHP code",
|
|
"keywords": ["instant upgrades", "instant refactoring", "ast", "automated refactoring"],
|
|
"homepage": "https://getrector.org",
|
|
"license": "MIT",
|
|
"authors": [
|
|
{ "name": "Tomas Votruba", "email": "tomas.vot@gmail.com", "homepage": "https://tomasvotruba.com" },
|
|
{ "name": "Jan Mikes", "email": "j.mikes@me.com", "homepage": "https://janmikes.cz" }
|
|
],
|
|
"bin": ["bin/rector"],
|
|
"require": {
|
|
"php": "^7.1",
|
|
"ext-json": "*",
|
|
"composer/xdebug-handler": "^1.3",
|
|
"doctrine/annotations": "^1.6",
|
|
"doctrine/inflector": "^1.3",
|
|
"jean85/pretty-package-versions": "^1.2",
|
|
"nette/robot-loader": "^3.1",
|
|
"nette/utils": "^2.5|^3.0",
|
|
"nikic/php-parser": "^4.3",
|
|
"ondram/ci-detector": "^3.1",
|
|
"phpstan/phpdoc-parser": "^0.3.5",
|
|
"phpstan/phpstan": "^0.11.13",
|
|
"phpstan/phpstan-phpunit": "^0.11.2",
|
|
"sebastian/diff": "^3.0",
|
|
"symfony/console": "^3.4|^4.2",
|
|
"symfony/dependency-injection": "^3.4|^4.2",
|
|
"symfony/finder": "^3.4|^4.2",
|
|
"symfony/process": "^3.4|^4.2",
|
|
"symplify/package-builder": "^6.1"
|
|
},
|
|
"require-dev": {
|
|
"friendsofphp/php-cs-fixer": "^2.14",
|
|
"jetbrains/phpstorm-stubs": "^2019.1",
|
|
"ocramius/package-versions": "^1.4",
|
|
"phpunit/phpunit": "^7.5|^8.0",
|
|
"symplify/changelog-linker": "^6.1",
|
|
"symplify/easy-coding-standard": "^6.1",
|
|
"symplify/monorepo-builder": "^6.1",
|
|
"symplify/phpstan-extensions": "^6.1",
|
|
"thecodingmachine/phpstan-strict-rules": "^0.11",
|
|
"tracy/tracy": "^2.5"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Rector\\": "src",
|
|
"Rector\\Autodiscovery\\": "packages/Autodiscovery/src",
|
|
"Rector\\Architecture\\": "packages/Architecture/src",
|
|
"Rector\\BetterPhpDocParser\\": "packages/BetterPhpDocParser/src",
|
|
"Rector\\CakePHP\\": "packages/CakePHP/src",
|
|
"Rector\\Celebrity\\": "packages/Celebrity/src",
|
|
"Rector\\CodeQuality\\": "packages/CodeQuality/src",
|
|
"Rector\\CodingStyle\\": "packages/CodingStyle/src",
|
|
"Rector\\ConsoleDiffer\\": "packages/ConsoleDiffer/src",
|
|
"Rector\\DeadCode\\": "packages/DeadCode/src",
|
|
"Rector\\Doctrine\\": "packages/Doctrine/src",
|
|
"Rector\\DoctrineCodeQuality\\": "packages/DoctrineCodeQuality/src",
|
|
"Rector\\ElasticSearchDSL\\": "packages/ElasticSearchDSL/src",
|
|
"Rector\\FileSystemRector\\": "packages/FileSystemRector/src",
|
|
"Rector\\Guzzle\\": "packages/Guzzle/src",
|
|
"Rector\\Laravel\\": "packages/Laravel/src",
|
|
"Rector\\Legacy\\": "packages/Legacy/src",
|
|
"Rector\\MysqlToMysqli\\": "packages/MysqlToMysqli/src",
|
|
"Rector\\NetteTesterToPHPUnit\\": "packages/NetteTesterToPHPUnit/src",
|
|
"Rector\\NetteToSymfony\\": "packages/NetteToSymfony/src",
|
|
"Rector\\Nette\\": "packages/Nette/src",
|
|
"Rector\\NodeTypeResolver\\": "packages/NodeTypeResolver/src",
|
|
"Rector\\PHPStan\\": "packages/PHPStan/src",
|
|
"Rector\\PHPUnitSymfony\\": "packages/PHPUnitSymfony/src",
|
|
"Rector\\PHPUnit\\": "packages/PHPUnit/src",
|
|
"Rector\\PSR4\\": "packages/PSR4/src",
|
|
"Rector\\PhpSpecToPHPUnit\\": "packages/PhpSpecToPHPUnit/src",
|
|
"Rector\\Php52\\": "packages/Php52/src",
|
|
"Rector\\Php53\\": "packages/Php53/src",
|
|
"Rector\\Php54\\": "packages/Php54/src",
|
|
"Rector\\Php55\\": "packages/Php55/src",
|
|
"Rector\\Php56\\": "packages/Php56/src",
|
|
"Rector\\Php70\\": "packages/Php70/src",
|
|
"Rector\\Php71\\": "packages/Php71/src",
|
|
"Rector\\Php72\\": "packages/Php72/src",
|
|
"Rector\\Php73\\": "packages/Php73/src",
|
|
"Rector\\Php74\\": "packages/Php74/src",
|
|
"Rector\\RemovingStatic\\": "packages/RemovingStatic/src",
|
|
"Rector\\Renaming\\": "packages/Renaming/src",
|
|
"Rector\\Restoration\\": "packages/Restoration/src",
|
|
"Rector\\Refactoring\\": "packages/Refactoring/src",
|
|
"Rector\\SOLID\\": "packages/SOLID/src",
|
|
"Rector\\Sensio\\": "packages/Sensio/src",
|
|
"Rector\\Shopware\\": "packages/Shopware/src",
|
|
"Rector\\Silverstripe\\": "packages/Silverstripe/src",
|
|
"Rector\\Sylius\\": "packages/Sylius/src",
|
|
"Rector\\SymfonyCodeQuality\\": "packages/SymfonyCodeQuality/src",
|
|
"Rector\\SymfonyPHPUnit\\": "packages/SymfonyPHPUnit/src",
|
|
"Rector\\Symfony\\": "packages/Symfony/src",
|
|
"Rector\\Twig\\": "packages/Twig/src",
|
|
"Rector\\TypeDeclaration\\": "packages/TypeDeclaration/src",
|
|
"Rector\\ZendToSymfony\\": "packages/ZendToSymfony/src",
|
|
"Rector\\Utils\\DocumentationGenerator\\": "utils/DocumentationGenerator/src",
|
|
"Rector\\Utils\\RectorGenerator\\": "utils/RectorGenerator/src",
|
|
"Rector\\StrictCodeQuality\\": "packages/StrictCodeQuality/src",
|
|
"Rector\\DynamicTypeAnalysis\\": "packages/DynamicTypeAnalysis/src"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Rector\\Tests\\": "tests",
|
|
"Rector\\Autodiscovery\\Tests\\": "packages/Autodiscovery/tests",
|
|
"Rector\\Architecture\\Tests\\": "packages/Architecture/tests",
|
|
"Rector\\BetterPhpDocParser\\Tests\\": "packages/BetterPhpDocParser/tests",
|
|
"Rector\\CakePHP\\Tests\\": "packages/CakePHP/tests",
|
|
"Rector\\Celebrity\\Tests\\": "packages/Celebrity/tests",
|
|
"Rector\\CodeQuality\\Tests\\": "packages/CodeQuality/tests",
|
|
"Rector\\CodingStyle\\Tests\\": "packages/CodingStyle/tests",
|
|
"Rector\\DeadCode\\Tests\\": "packages/DeadCode/tests",
|
|
"Rector\\Doctrine\\Tests\\": "packages/Doctrine/tests",
|
|
"Rector\\DoctrineCodeQuality\\Tests\\": "packages/DoctrineCodeQuality/tests",
|
|
"Rector\\ElasticSearchDSL\\Tests\\": "packages/ElasticSearchDSL/tests",
|
|
"Rector\\Guzzle\\Tests\\": "packages/Guzzle/tests",
|
|
"Rector\\Laravel\\Tests\\": "packages/Laravel/tests",
|
|
"Rector\\Legacy\\Tests\\": "packages/Legacy/tests",
|
|
"Rector\\MysqlToMysqli\\Tests\\": "packages/MysqlToMysqli/tests",
|
|
"Rector\\NetteTesterToPHPUnit\\Tests\\": "packages/NetteTesterToPHPUnit/tests",
|
|
"Rector\\NetteToSymfony\\Tests\\": "packages/NetteToSymfony/tests",
|
|
"Rector\\Nette\\Tests\\": "packages/Nette/tests",
|
|
"Rector\\NodeTypeResolver\\Tests\\": "packages/NodeTypeResolver/tests",
|
|
"Rector\\PHPStanExtensions\\": "utils/PHPStanExtensions/src",
|
|
"Rector\\PHPStan\\Tests\\": "packages/PHPStan/tests",
|
|
"Rector\\PHPUnitSymfony\\Tests\\": "packages/PHPUnitSymfony/tests",
|
|
"Rector\\PHPUnit\\Tests\\": "packages/PHPUnit/tests",
|
|
"Rector\\PSR4\\Tests\\": "packages/PSR4/tests",
|
|
"Rector\\PhpSpecToPHPUnit\\Tests\\": "packages/PhpSpecToPHPUnit/tests",
|
|
"Rector\\Php52\\Tests\\": "packages/Php52/tests",
|
|
"Rector\\Php53\\Tests\\": "packages/Php53/tests",
|
|
"Rector\\Php54\\Tests\\": "packages/Php54/tests",
|
|
"Rector\\Php55\\Tests\\": "packages/Php55/tests",
|
|
"Rector\\Php56\\Tests\\": "packages/Php56/tests",
|
|
"Rector\\Php70\\Tests\\": "packages/Php70/tests",
|
|
"Rector\\Php71\\Tests\\": "packages/Php71/tests",
|
|
"Rector\\Php72\\Tests\\": "packages/Php72/tests",
|
|
"Rector\\Php73\\Tests\\": "packages/Php73/tests",
|
|
"Rector\\Php74\\Tests\\": "packages/Php74/tests",
|
|
"Rector\\RemovingStatic\\Tests\\": "packages/RemovingStatic/tests",
|
|
"Rector\\Renaming\\Tests\\": "packages/Renaming/tests",
|
|
"Rector\\Restoration\\Tests\\": "packages/Restoration/tests",
|
|
"Rector\\SOLID\\Tests\\": "packages/SOLID/tests",
|
|
"Rector\\Sensio\\Tests\\": "packages/Sensio/tests",
|
|
"Rector\\Shopware\\Tests\\": "packages/Shopware/tests",
|
|
"Rector\\Silverstripe\\Tests\\": "packages/Silverstripe/tests",
|
|
"Rector\\Sylius\\Tests\\": "packages/Sylius/tests",
|
|
"Rector\\SymfonyCodeQuality\\Tests\\": "packages/SymfonyCodeQuality/tests",
|
|
"Rector\\SymfonyPHPUnit\\Tests\\": "packages/SymfonyPHPUnit/tests",
|
|
"Rector\\Symfony\\Tests\\": "packages/Symfony/tests",
|
|
"Rector\\Twig\\Tests\\": "packages/Twig/tests",
|
|
"Rector\\TypeDeclaration\\Tests\\": "packages/TypeDeclaration/tests",
|
|
"Rector\\ZendToSymfony\\Tests\\": "packages/ZendToSymfony/tests",
|
|
"Rector\\StrictCodeQuality\\Tests\\": "packages/StrictCodeQuality/tests",
|
|
"Rector\\DynamicTypeAnalysis\\Tests\\": "packages/DynamicTypeAnalysis/tests"
|
|
},
|
|
"classmap": [
|
|
"packages/Symfony/tests/Rector/FrameworkBundle/AbstractToConstructorInjectionRectorSource",
|
|
"packages/Symfony/tests/Rector/FrameworkBundle/ContainerGetToConstructorInjectionRector/Source",
|
|
"packages/NodeTypeResolver/tests/PerNodeTypeResolver/ParamTypeResolver/Source",
|
|
"packages/NodeTypeResolver/tests/PerNodeTypeResolver/PropertyTypeResolver/Source",
|
|
"tests/Source",
|
|
"tests/Rector/Psr4/MultipleClassFileToPsr4ClassesRector/Source",
|
|
"tests/Rector/Namespace_/PseudoNamespaceToNamespaceRector/Source",
|
|
"tests/Issues/Issue1243/Source",
|
|
"packages/Autodiscovery/tests/Rector/FileSystem/MoveInterfacesToContractNamespaceDirectoryRector/Expected",
|
|
"packages/Autodiscovery/tests/Rector/FileSystem/MoveServicesBySuffixToDirectoryRector/Expected"
|
|
],
|
|
"files": [
|
|
"packages/DeadCode/tests/Rector/MethodCall/RemoveDefaultArgumentValueRector/Source/UserDefined.php",
|
|
"packages/TypeDeclaration/tests/Rector/Property/CompleteVarDocTypePropertyRector/Source/EventDispatcher.php",
|
|
"tests/Rector/Namespace_/PseudoNamespaceToNamespaceRector/Source/ChangeMeAnotherNamespace.php",
|
|
"packages/TypeDeclaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/Source/MyBar.php",
|
|
"packages/Renaming/tests/Rector/Class_/RenameClassRector/Source/Twig_Extension_Sandbox.php",
|
|
"packages/Renaming/tests/Rector/Class_/RenameClassRector/Source/TwigFilter.php",
|
|
"packages/Renaming/tests/Rector/Class_/RenameClassRector/Source/Manual_Twig_Filter.php",
|
|
"packages/SOLID/tests/Rector/ClassMethod/UseInterfaceOverImplementationInConstructorRector/Source/Apple.php"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"complete-check": [
|
|
"@check-cs",
|
|
"phpunit",
|
|
"@phpstan",
|
|
"@docs"
|
|
],
|
|
"check-cs": "ecs check bin packages src tests utils --ansi",
|
|
"fix-cs": [
|
|
"ecs check bin packages src tests utils --fix --ansi",
|
|
"ci/clean_trailing_spaces.sh"
|
|
],
|
|
"phpstan": "phpstan analyse packages src tests --error-format symplify --ansi",
|
|
"changelog": [
|
|
"changelog-linker dump-merges --in-categories",
|
|
"changelog-linker link",
|
|
"changelog-linker cleanup"
|
|
],
|
|
"check-docs": [
|
|
"bin/rector dump-rectors -o markdown | diff docs/AllRectorsOverview.md - ",
|
|
"bin/rector dump-nodes -o markdown | diff docs/NodesOverview.md - "
|
|
],
|
|
"docs": [
|
|
"bin/rector dump-rectors -o markdown > docs/AllRectorsOverview.md",
|
|
"bin/rector dump-nodes -o markdown > docs/NodesOverview.md"
|
|
],
|
|
"rector": "bin/rector process --config rector-ci.yaml --dry-run"
|
|
},
|
|
"scripts-descriptions": {
|
|
"docs": "Regenerate descriptions of all Rectors to docs/AllRectorsOverview.md file"
|
|
},
|
|
"config": {
|
|
"sort-packages": true
|
|
},
|
|
"extra": {
|
|
"branch-alias": {
|
|
"dev-master": "0.6-dev"
|
|
}
|
|
}
|
|
}
|