mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-20 23:41:57 +02:00
move GenerateRectorOverview to GenerateDocs in ContributorTools
This commit is contained in:
parent
530b2f1310
commit
e3ffb69230
@ -38,7 +38,7 @@ script:
|
||||
- |
|
||||
if [[ $RUN_RECTOR == true ]]; then
|
||||
bin/rector process src --level symfony40 --dry-run
|
||||
bin/rector generate-rector-overview >> rector-overview.md
|
||||
bin/rector docs >> rector-overview.md
|
||||
fi
|
||||
|
||||
# Run standalone install in non-root package, ref https://github.com/rectorphp/rector/issues/732
|
||||
|
@ -103,9 +103,8 @@
|
||||
"vendor/bin/ecs check bin packages src tests --fix",
|
||||
"bin/clean_trailing_spaces.sh"
|
||||
],
|
||||
"docs": "@update-docs",
|
||||
"phpstan": "vendor/bin/phpstan analyse packages src tests",
|
||||
"update-docs": "bin/rector generate-rector-overview > docs/AllRectorsOverview.md",
|
||||
"docs": "bin/rector generate-docs > docs/AllRectorsOverview.md",
|
||||
"pre-autoload-dump": [
|
||||
"Rector\\Tests\\Composer\\AutoloadWrongCasesEventSubscriber::preAutoloadDump"
|
||||
]
|
||||
|
@ -7,6 +7,7 @@ use Nette\Utils\Strings;
|
||||
use Rector\CodingStyle\AfterRectorCodingStyle;
|
||||
use Rector\ContributorTools\Configuration\Configuration;
|
||||
use Rector\ContributorTools\Configuration\ConfigurationFactory;
|
||||
use Rector\ContributorTools\Exception\Command\MaintainerCommandInterface;
|
||||
use Rector\ContributorTools\TemplateVariablesFactory;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
@ -21,7 +22,7 @@ use function Safe\getcwd;
|
||||
use function Safe\sort;
|
||||
use function Safe\sprintf;
|
||||
|
||||
final class CreateRectorCommand extends Command
|
||||
final class CreateRectorCommand extends Command implements MaintainerCommandInterface
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
|
@ -1,12 +1,14 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Rector\Console\Command;
|
||||
namespace Rector\ContributorTools\Command;
|
||||
|
||||
use Nette\Loaders\RobotLoader;
|
||||
use Nette\Utils\Strings;
|
||||
use Rector\Console\Command\AbstractCommand;
|
||||
use Rector\Console\Shell;
|
||||
use Rector\ConsoleDiffer\MarkdownDifferAndFormatter;
|
||||
use Rector\Contract\Rector\RectorInterface;
|
||||
use Rector\ContributorTools\Exception\Command\MaintainerCommandInterface;
|
||||
use Rector\Error\ExceptionCorrector;
|
||||
use Rector\Exception\ShouldNotHappenException;
|
||||
use Rector\RectorDefinition\ConfiguredCodeSample;
|
||||
@ -19,7 +21,7 @@ use Symplify\PackageBuilder\Console\Command\CommandNaming;
|
||||
use function Safe\ksort;
|
||||
use function Safe\sprintf;
|
||||
|
||||
final class GenerateRectorOverviewCommand extends AbstractCommand
|
||||
final class GenerateDocsCommand extends AbstractCommand implements MaintainerCommandInterface
|
||||
{
|
||||
/**
|
||||
* @var SymfonyStyle
|
@ -0,0 +1,8 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Rector\ContributorTools\Exception\Command;
|
||||
|
||||
interface MaintainerCommandInterface
|
||||
{
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user