Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions .github/workflows/drupal_rector_examples.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/standalone_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ jobs:
cd symfony-demo-dir
../rector-dir/vendor/bin/rector

# --hide-autoload-errors due to skipped dev deps and mixes tests in /src
../rector-dir/vendor/bin/rector process src --set code-quality --hide-autoload-errors
# autoload errors due to remove --dev and mixed dependencies in /src and /tests
../rector-dir/vendor/bin/rector process src --set code-quality
3 changes: 2 additions & 1 deletion .github/workflows/validate_fixtures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: shivammathur/setup-php@v1
with:
php-version: 7.4
coverage: none # disable xdebug, pcov
coverage: none

- run: composer install --no-progress
- run: bin/rector validate-fixtures --ansi
3 changes: 2 additions & 1 deletion .github/workflows/validate_sets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: shivammathur/setup-php@v1
with:
php-version: 7.4
coverage: none # disable xdebug, pcov
coverage: none

- run: composer install --no-progress
- run: bin/rector validate-sets --ansi
4 changes: 0 additions & 4 deletions src/Application/RectorApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,6 @@ private function tryCatchWrapper(SmartFileInfo $smartFileInfo, callable $callbac

$callback($smartFileInfo);
} catch (AnalysedCodeException $analysedCodeException) {
if ($this->configuration->shouldHideAutoloadErrors()) {
return;
}

$this->notParsedFiles[] = $smartFileInfo;

$this->errorAndDiffCollector->addAutoloadError($analysedCodeException, $smartFileInfo);
Expand Down
11 changes: 0 additions & 11 deletions src/Configuration/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ final class Configuration
*/
private $isDryRun = false;

/**
* @var bool
*/
private $hideAutoloadErrors = false;

/**
* @var string|null
*/
Expand Down Expand Up @@ -104,7 +99,6 @@ public function resolveFromInput(InputInterface $input): void
{
$this->isDryRun = (bool) $input->getOption(Option::OPTION_DRY_RUN);
$this->shouldClearCache = (bool) $input->getOption(Option::OPTION_CLEAR_CACHE);
$this->hideAutoloadErrors = (bool) $input->getOption(Option::HIDE_AUTOLOAD_ERRORS);
$this->mustMatchGitDiff = (bool) $input->getOption(Option::MATCH_GIT_DIFF);
$this->showProgressBar = $this->canShowProgressBar($input);
$this->isCacheDebug = (bool) $input->getOption(Option::CACHE_DEBUG);
Expand Down Expand Up @@ -151,11 +145,6 @@ public function isDryRun(): bool
return $this->isDryRun;
}

public function shouldHideAutoloadErrors(): bool
{
return $this->hideAutoloadErrors;
}

public function showProgressBar(): bool
{
if ($this->ciDetector->isCiDetected()) {
Expand Down
5 changes: 0 additions & 5 deletions src/Configuration/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ final class Option
*/
public const PHP_VERSION_FEATURES = 'php_version_features';

/**
* @var string
*/
public const HIDE_AUTOLOAD_ERRORS = 'hide-autoload-errors';

/**
* @var string
*/
Expand Down
7 changes: 0 additions & 7 deletions src/Console/Command/ProcessCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,6 @@ protected function configure(): void
'File with extra autoload'
);

$this->addOption(
Option::HIDE_AUTOLOAD_ERRORS,
'e',
InputOption::VALUE_NONE,
'Hide autoload errors for the moment.'
);

$this->addOption(
Option::MATCH_GIT_DIFF,
null,
Expand Down