move GenerateRectorOverview to GenerateDocs in ContributorTools

This commit is contained in:
Tomas Votruba 2018-12-23 17:55:28 +01:00
parent 530b2f1310
commit e3ffb69230
5 changed files with 16 additions and 6 deletions

View File

@ -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

View File

@ -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"
]

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,8 @@
<?php declare(strict_types=1);
namespace Rector\ContributorTools\Exception\Command;
interface MaintainerCommandInterface
{
}