Skip to content

Commit

Permalink
Plugin::loadInstalledPaths(): config-show always shows all
Browse files Browse the repository at this point in the history
Running PHPCS with `--config-show installed_paths` is an unsupported command for PHPCS. The `--config-show` command does not take additional parameters and will always show all keys.

While PHPCS is currently tolerant of this, there is no guarantee that it will continue to stay tolerant of this.
  • Loading branch information
jrfnl committed Feb 2, 2022
1 parent ab0923f commit f81fbba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,7 @@ private function loadInstalledPaths()
{
if ($this->isPHPCodeSnifferInstalled() === true) {
$this->processExecutor->execute(
sprintf(
'phpcs --config-show %s',
self::PHPCS_CONFIG_KEY
),
'phpcs --config-show',
$output,
$this->composer->getConfig()->get('bin-dir')
);
Expand Down

0 comments on commit f81fbba

Please sign in to comment.