Skip to content

Commit

Permalink
Remove deprecated @noRector warning (#3518)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Mar 25, 2023
1 parent d2459d1 commit 3445422
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/Parallel/WorkerRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,6 @@ public function run(Encoder $encoder, Decoder $decoder, Configuration $configura
$this->currentFileProvider->setFile($file);

$errorAndFileDiffs = $this->processFiles($file, $configuration, $errorAndFileDiffs);

// warn about deprecated @noRector annotation
if (! str_ends_with($file->getFilePath(), 'WorkerRunner.php')
&& (
str_contains($file->getFileContent(), ' @noRector ') ||
str_contains($file->getFileContent(), ' @norector ')
)
) {
$systemErrors[] = new SystemError(
'The @noRector annotation was deprecated and removed due to hiding fixed errors. Use more precise $rectorConfig->skip() method in the rector.php config.',
$file->getFilePath()
);
continue;
}
} catch (Throwable $throwable) {
++$systemErrorsCount;
$systemErrors = $this->collectSystemErrors($systemErrors, $throwable, $filePath);
Expand Down

0 comments on commit 3445422

Please sign in to comment.