From ecc3e299d34d868fe0e74070672150a744c4c3eb Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 4 Sep 2026 10:28:23 +0200 Subject: [PATCH] [ax] Deprecate --rules-summary, suggest --output-format=json --- src/Console/Command/ProcessCommand.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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();