rector/composer.json
2018-12-12 09:58:55 +01:00

120 lines
5.5 KiB
JSON

{
"name": "rector/rector",
"description": "Instant upgrade and refactoring of your PHP code",
"keywords": ["instant upgrades", "instant refactoring", "ast", "automated refactoring"],
"license": "MIT",
"require": {
"php": "^7.1",
"composer/xdebug-handler": "^1.3",
"jean85/pretty-package-versions": "^1.2",
"nette/robot-loader": "^3.1",
"nette/utils": "^2.5",
"nikic/php-parser": "^4.1",
"phpstan/phpstan": "^0.10.6",
"sebastian/diff": "^3.0",
"symfony/console": "^3.4|^4.1",
"symfony/dependency-injection": "^3.4|^4.1",
"symfony/finder": "^3.4|^4.1",
"symfony/process": "^3.4|^4.1",
"symplify/better-phpdoc-parser": "^5.2.15",
"symplify/package-builder": "^5.2.15",
"thecodingmachine/safe": "^0.1.6"
},
"require-dev": {
"phpunit/phpunit": "^7.5",
"ocramius/package-versions": "^1.3",
"symplify/easy-coding-standard": "^5.2.15",
"symplify/monorepo-builder": "^5.2.15",
"symplify/phpstan-extensions": "^5.2.15",
"thecodingmachine/phpstan-safe-rule": "^0.1.0",
"thecodingmachine/phpstan-strict-rules": "^0.10.7",
"tracy/tracy": "^2.5"
},
"autoload": {
"psr-4": {
"Rector\\": "src",
"Rector\\ContributorTools\\": "packages/ContributorTools/src",
"Rector\\ConsoleDiffer\\": "packages/ConsoleDiffer/src",
"Rector\\CodingStyle\\": "packages/CodingStyle/src",
"Rector\\Guzzle\\": "packages/Guzzle/src",
"Rector\\CodeQuality\\": "packages/CodeQuality/src",
"Rector\\DomainDrivenDesign\\": "packages/DomainDrivenDesign/src",
"Rector\\NodeTypeResolver\\": "packages/NodeTypeResolver/src",
"Rector\\Symfony\\": "packages/Symfony/src",
"Rector\\CakePHP\\": "packages/CakePHP/src",
"Rector\\Php\\": "packages/Php/src",
"Rector\\Jms\\": "packages/Jms/src",
"Rector\\Silverstripe\\": "packages/Silverstripe/src",
"Rector\\Sensio\\": "packages/Sensio/src",
"Rector\\Sylius\\": "packages/Sylius/src",
"Rector\\PHPStan\\": "packages/PHPStan/src",
"Rector\\PHPUnit\\": "packages/PHPUnit/src",
"Rector\\Twig\\": "packages/Twig/src",
"Rector\\PhpParser\\": "packages/PhpParser/src",
"Rector\\Doctrine\\": "packages/Doctrine/src",
"Rector\\FileSystemRector\\": "packages/FileSystemRector/src"
}
},
"autoload-dev": {
"psr-4": {
"Rector\\Tests\\": "tests",
"Rector\\NodeTypeResolver\\Tests\\": "packages/NodeTypeResolver/tests",
"Rector\\CakePHP\\Tests\\": "packages/CakePHP/tests",
"Rector\\CodeQuality\\Tests\\": "packages/CodeQuality/tests",
"Rector\\CodingStyle\\Tests\\": "packages/CodingStyle/tests",
"Rector\\DomainDrivenDesign\\Tests\\": "packages/DomainDrivenDesign/tests",
"Rector\\Guzzle\\Tests\\": "packages/Guzzle/tests",
"Rector\\Php\\Tests\\": "packages/Php/tests",
"Rector\\Jms\\Tests\\": "packages/Jms/tests",
"Rector\\Symfony\\Tests\\": "packages/Symfony/tests",
"Rector\\Silverstripe\\Tests\\": "packages/Silverstripe/tests",
"Rector\\Sensio\\Tests\\": "packages/Sensio/tests",
"Rector\\Sylius\\Tests\\": "packages/Sylius/tests",
"Rector\\PHPStan\\Tests\\": "packages/PHPStan/tests",
"Rector\\PHPUnit\\Tests\\": "packages/PHPUnit/tests",
"Rector\\PhpParser\\Tests\\": "packages/PhpParser/tests",
"Rector\\Twig\\Tests\\": "packages/Twig/tests",
"Rector\\Doctrine\\Tests\\": "packages/Doctrine/tests",
"Rector\\FileSystemRector\\Tests\\": "packages/FileSystemRector/tests"
},
"classmap": [
"examples",
"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"
]
},
"suggest": {
"symplify/easy-coding-standard": "Required to enable '--with-style' option. Use in case you don't have PHP_CodeSniffer or PHP-CS-Fixer yet."
},
"scripts": {
"complete-check": [
"@check-cs",
"phpunit",
"@phpstan",
"@update-docs"
],
"check-cs": "vendor/bin/ecs check bin packages src tests",
"fix-cs": [
"vendor/bin/ecs check bin packages src tests --fix",
"bin/clean_trailing_spaces.sh"
],
"phpstan": "vendor/bin/phpstan analyse packages src tests",
"update-docs": "bin/rector generate-rector-overview > docs/AllRectorsOverview.md",
"pre-autoload-dump": [
"Rector\\Tests\\Composer\\AutoloadWrongCasesEventSubscriber::preAutoloadDump"
]
},
"scripts-descriptions": {
"update-docs": "Regenerate descriptions of all Rectors to docs/AllRectorsOverview.md file"
},
"bin": ["bin/rector"],
"config": {
"sort-packages": true
}
}