@@ -80,12 +80,16 @@ final class Configuration
8080 * @readonly
8181 */
8282 private array $ levelOverflows = [];
83+ /**
84+ * @readonly
85+ */
86+ private bool $ showRulesSummary = \false;
8387 /**
8488 * @param string[] $fileExtensions
8589 * @param string[] $paths
8690 * @param LevelOverflow[] $levelOverflows
8791 */
88- public function __construct (bool $ isDryRun = \false, bool $ showProgressBar = \true, bool $ shouldClearCache = \false, string $ outputFormat = ConsoleOutputFormatter::NAME , array $ fileExtensions = ['php ' ], array $ paths = [], bool $ showDiffs = \true, ?string $ parallelPort = null , ?string $ parallelIdentifier = null , bool $ isParallel = \false, ?string $ memoryLimit = null , bool $ isDebug = \false, bool $ reportingWithRealPath = \false, ?string $ onlyRule = null , ?string $ onlySuffix = null , array $ levelOverflows = [])
92+ public function __construct (bool $ isDryRun = \false, bool $ showProgressBar = \true, bool $ shouldClearCache = \false, string $ outputFormat = ConsoleOutputFormatter::NAME , array $ fileExtensions = ['php ' ], array $ paths = [], bool $ showDiffs = \true, ?string $ parallelPort = null , ?string $ parallelIdentifier = null , bool $ isParallel = \false, ?string $ memoryLimit = null , bool $ isDebug = \false, bool $ reportingWithRealPath = \false, ?string $ onlyRule = null , ?string $ onlySuffix = null , array $ levelOverflows = [], bool $ showRulesSummary = \false )
8993 {
9094 $ this ->isDryRun = $ isDryRun ;
9195 $ this ->showProgressBar = $ showProgressBar ;
@@ -103,6 +107,7 @@ public function __construct(bool $isDryRun = \false, bool $showProgressBar = \tr
103107 $ this ->onlyRule = $ onlyRule ;
104108 $ this ->onlySuffix = $ onlySuffix ;
105109 $ this ->levelOverflows = $ levelOverflows ;
110+ $ this ->showRulesSummary = $ showRulesSummary ;
106111 }
107112 public function isDryRun (): bool
108113 {
@@ -188,4 +193,8 @@ public function getBothSetAndRulesDuplicatedRegistrations(): array
188193 $ ruleDuplicatedRegistrations = array_intersect ($ rootStandaloneRegisteredRules , $ setRegisteredRules );
189194 return array_unique ($ ruleDuplicatedRegistrations );
190195 }
196+ public function shouldShowRulesSummary (): bool
197+ {
198+ return $ this ->showRulesSummary ;
199+ }
191200}
0 commit comments