Skip to content

Commit

Permalink
Remove dead classes #2, remove unused PlatformAgnosticAssertions, rem…
Browse files Browse the repository at this point in the history
…ove ConsoleShowOutputFormatter (#1134)

* remove daed classes

* make show output format simple again, just CLI output as helper command

* move MethodCallManipulator to rector-nette

* cleanup
  • Loading branch information
TomasVotruba committed Nov 2, 2021
1 parent b7d37b8 commit ff45ce6
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 722 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
name: 'Commented Code'
run: vendor/bin/easy-ci check-commented-code src packages rules tests packages-tests rules-tests --line-limit 5 --ansi

# -
# name: 'Active Classes'
# run: vendor/bin/easy-ci check-active-class src packages rules --ansi
-
name: 'Active Classes'
run: vendor/bin/easy-ci check-active-class bin config src packages rules --ansi

# see https://github.com/rectorphp/rector-generator
-
Expand Down
22 changes: 22 additions & 0 deletions easy-ci.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,27 @@

declare(strict_types=1);

use PHPStan\PhpDocParser\Parser\TypeParser;
use Rector\CodingStyle\Contract\ClassNameImport\ClassNameImportSkipVoterInterface;
use Rector\Core\Contract\Console\OutputStyleInterface;
use Rector\Core\Contract\PHPStan\Reflection\TypeToCallReflectionResolver\TypeToCallReflectionResolverInterface;
use Rector\Core\Contract\Processor\FileProcessorInterface;
use Rector\Core\Contract\Rector\RectorInterface;
use Rector\Core\NodeManipulator\MethodCallManipulator;
use Rector\DependencyInjection\NodeManipulator\PropertyConstructorInjectionManipulator;
use Rector\FileFormatter\Contract\Formatter\FileFormatterInterface;
use Rector\Naming\Contract\Guard\ConflictingNameGuardInterface;
use Rector\NodeNameResolver\Contract\NodeNameResolverInterface;
use Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface;
use Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory;
use Rector\NodeTypeResolver\Reflection\BetterReflection\RectorBetterReflectionSourceLocatorFactory;
use Rector\Php80\Contract\StrStartWithMatchAndRefactorInterface;
use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
use Rector\ReadWrite\Contract\ReadNodeAnalyzerInterface;
use Rector\Set\Contract\SetListInterface;
use Rector\StaticTypeMapper\Contract\PhpDocParser\PhpDocTypeMapperInterface;
use Rector\StaticTypeMapper\Contract\PhpParser\PhpParserNodeMapperInterface;
use Rector\Testing\PHPUnit\AbstractTestCase;
use Rector\TypeDeclaration\Contract\TypeInferer\ParamTypeInfererInterface;
use Rector\TypeDeclaration\Contract\TypeInferer\PropertyTypeInfererInterface;
use Rector\TypeDeclaration\Contract\TypeInferer\ReturnTypeInfererInterface;
Expand Down Expand Up @@ -44,5 +53,18 @@
NodeTypeResolverInterface::class,
ReadNodeAnalyzerInterface::class,
SetListInterface::class,
ConflictingNameGuardInterface::class,
TypeParser::class,
RectorBetterReflectionSourceLocatorFactory::class,
AbstractTestCase::class,
PHPStanServicesFactory::class,
OutputStyleInterface::class,
FileFormatterInterface::class,
MethodCallManipulator::class,
// fix later - rector-symfony
PropertyConstructorInjectionManipulator::class,
// used in tests
\Rector\FileSystemRector\Parser\FileInfoParser::class,
\Rector\Defluent\NodeAnalyzer\SameClassMethodCallAnalyzer::class,
]);
};

This file was deleted.

30 changes: 0 additions & 30 deletions packages/BetterPhpDocParser/PhpDocParser/TypeNodeAnalyzer.php

This file was deleted.

72 changes: 0 additions & 72 deletions packages/FamilyTree/NodeAnalyzer/PropertyUsageAnalyzer.php

This file was deleted.

This file was deleted.

39 changes: 0 additions & 39 deletions packages/ListReporting/Output/ConsoleShowOutputFormatter.php

This file was deleted.

85 changes: 0 additions & 85 deletions packages/Testing/PHPUnit/PlatformAgnosticAssertions.php

This file was deleted.

3 changes: 3 additions & 0 deletions packages/Testing/TestingParser/TestingParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Symplify\PackageBuilder\Parameter\ParameterProvider;
use Symplify\SmartFileSystem\SmartFileInfo;

/**
* @api
*/
final class TestingParser
{
public function __construct(
Expand Down
Loading

0 comments on commit ff45ce6

Please sign in to comment.