12
12
use Rector \Core \Configuration \Option ;
13
13
use Rector \Core \Console \Output \OutputFormatterCollector ;
14
14
use Rector \Core \Contract \Console \OutputStyleInterface ;
15
- use Rector \Core \Contract \Rector \RectorInterface ;
16
15
use Rector \Core \Exception \ShouldNotHappenException ;
17
16
use Rector \Core \Reporting \MissingRectorRulesReporter ;
18
17
use Rector \Core \StaticReflection \DynamicSourceLocatorDecorator ;
21
20
use Rector \Core \ValueObject \Configuration ;
22
21
use Rector \Core \ValueObject \ProcessResult ;
23
22
use Rector \Core \ValueObjectFactory \ProcessResultFactory ;
24
- use Rector \VersionBonding \Application \MissedRectorDueVersionChecker ;
25
23
use Symfony \Component \Console \Application ;
26
24
use Symfony \Component \Console \Command \Command ;
27
25
use Symfony \Component \Console \Input \InputInterface ;
30
28
31
29
final class ProcessCommand extends AbstractProcessCommand
32
30
{
33
- /**
34
- * @param RectorInterface[] $rectors
35
- */
36
31
public function __construct (
37
32
private readonly AdditionalAutoloader $ additionalAutoloader ,
38
33
private readonly ChangedFilesDetector $ changedFilesDetector ,
@@ -41,12 +36,10 @@ public function __construct(
41
36
private readonly BootstrapFilesIncluder $ bootstrapFilesIncluder ,
42
37
private readonly ProcessResultFactory $ processResultFactory ,
43
38
private readonly DynamicSourceLocatorDecorator $ dynamicSourceLocatorDecorator ,
44
- private readonly MissedRectorDueVersionChecker $ missedRectorDueVersionChecker ,
45
39
private readonly EmptyConfigurableRectorChecker $ emptyConfigurableRectorChecker ,
46
40
private readonly OutputFormatterCollector $ outputFormatterCollector ,
47
41
private readonly OutputStyleInterface $ rectorOutputStyle ,
48
42
private readonly MemoryLimiter $ memoryLimiter ,
49
- private readonly array $ rectors
50
43
) {
51
44
parent ::__construct ();
52
45
}
@@ -82,12 +75,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
82
75
83
76
$ paths = $ configuration ->getPaths ();
84
77
85
- // 0 . add files and directories to static locator
78
+ // 1 . add files and directories to static locator
86
79
$ this ->dynamicSourceLocatorDecorator ->addPaths ($ paths );
87
80
88
- // 1. inform user about non-runnable rules
89
- $ this ->missedRectorDueVersionChecker ->check ($ this ->rectors );
90
-
91
81
// 2. inform user about registering configurable rule without configuration
92
82
$ this ->emptyConfigurableRectorChecker ->check ();
93
83
0 commit comments