diff --git a/src/Console/Command/ProcessCommand.php b/src/Console/Command/ProcessCommand.php index 9aa71ad434f..d9d7ef05806 100644 --- a/src/Console/Command/ProcessCommand.php +++ b/src/Console/Command/ProcessCommand.php @@ -98,6 +98,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int $this->symfonyStyle->setVerbosity(OutputInterface::VERBOSITY_QUIET); } + // "--rules-summary" is a human-only table; the JSON format carries richer per-rule data + if ($configuration->shouldShowRulesSummary()) { + $this->symfonyStyle->getErrorStyle() + ->warning( + 'The "--rules-summary" option is deprecated and will be removed. Use "--output-format=json" instead, which reports every applied rule with its file and line.' + ); + } + $this->additionalAutoloader->autoloadInput($input); $paths = $configuration->getPaths();