Skip to content

Commit 3f117b8

Browse files
committed
Revert "add help entry for --allow-empty-file-list"
This reverts commit b104d67.
1 parent b104d67 commit 3f117b8

File tree

2 files changed

+22
-27
lines changed

2 files changed

+22
-27
lines changed

src/Util/Help.php

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ final class Help
3636
* @var array<string> List of the option names.
3737
*/
3838
public const DEFAULT_LONG_OPTIONS = [
39-
'allow-empty-file-list',
4039
'basepath',
4140
'bootstrap',
4241
'colors',
@@ -492,83 +491,79 @@ private function getAllOptions()
492491
];
493492

494493
$options['Reporting Options'] = [
495-
'report' => [
494+
'report' => [
496495
'argument' => '--report=<report(s)>',
497496
'description' => 'A comma-separated list of reports to print. Available reports: "full", "xml", "checkstyle", "csv", "json", "junit", "emacs", "source", "summary", "diff", "svnblame", "gitblame", "hgblame", "notifysend" or "performance".' . "\n"
498497
. 'Or specify the path to a custom report class. By default, the "full" report is displayed.',
499498
],
500-
'report-file' => [
499+
'report-file' => [
501500
'argument' => '--report-file=<reportFile>',
502501
'description' => 'Write the report to the specified file path.',
503502
],
504-
'report-report' => [
503+
'report-report' => [
505504
'argument' => '--report-<report>=<reportFile>',
506505
'description' => 'Write the report specified in <report> to the specified file path.',
507506
],
508-
'report-width' => [
507+
'report-width' => [
509508
'argument' => '--report-width=<reportWidth>',
510509
'description' => 'How many columns wide screen reports should be. Set to "auto" to use current screen width, where supported.',
511510
],
512-
'basepath' => [
511+
'basepath' => [
513512
'argument' => '--basepath=<basepath>',
514513
'description' => 'Strip a path from the front of file paths inside reports.',
515514
],
516-
'blank-line-1' => ['spacer' => ''],
515+
'blank-line-1' => ['spacer' => ''],
517516

518-
'w' => [
517+
'w' => [
519518
'argument' => '-w',
520519
'description' => 'Include both warnings and errors (default).',
521520
],
522-
'n' => [
521+
'n' => [
523522
'argument' => '-n',
524523
'description' => 'Do not include warnings. Shortcut for "--warning-severity=0".',
525524
],
526-
'severity' => [
525+
'severity' => [
527526
'argument' => '--severity=<severity>',
528527
'description' => 'The minimum severity required to display an error or warning. Defaults to 5.',
529528
],
530-
'error-severity' => [
529+
'error-severity' => [
531530
'argument' => '--error-severity=<severity>',
532531
'description' => 'The minimum severity required to display an error. Defaults to 5.',
533532
],
534-
'warning-severity' => [
533+
'warning-severity' => [
535534
'argument' => '--warning-severity=<severity>',
536535
'description' => 'The minimum severity required to display a warning. Defaults to 5.',
537536
],
538-
'blank-line-2' => ['spacer' => ''],
537+
'blank-line-2' => ['spacer' => ''],
539538

540-
's' => [
539+
's' => [
541540
'argument' => '-s',
542541
'description' => 'Show sniff error codes in all reports.',
543542
],
544-
'ignore-annotations' => [
543+
'ignore-annotations' => [
545544
'argument' => '--ignore-annotations',
546545
'description' => 'Ignore all "phpcs:..." annotations in code comments.',
547546
],
548-
'colors' => [
547+
'colors' => [
549548
'argument' => '--colors',
550549
'description' => 'Use colors in screen output.',
551550
],
552-
'no-colors' => [
551+
'no-colors' => [
553552
'argument' => '--no-colors',
554553
'description' => 'Do not use colors in screen output (default).',
555554
],
556-
'p' => [
555+
'p' => [
557556
'argument' => '-p',
558557
'description' => 'Show progress of the run.',
559558
],
560-
'q' => [
559+
'q' => [
561560
'argument' => '-q',
562561
'description' => 'Quiet mode; disables progress and verbose output.',
563562
],
564-
'm' => [
563+
'm' => [
565564
'argument' => '-m',
566565
'description' => 'Stop error messages from being recorded. This saves a lot of memory but stops many reports from being used.',
567566
],
568-
'allow-empty-file-list' => [
569-
'argument' => '--allow-empty-file-list',
570-
'description' => 'Suppress "No files were checked" error.',
571-
],
572567
];
573568

574569
$options['Configuration Options'] = [

tests/Core/Util/Help/HelpTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public static function dataOptionFiltering()
235235
'Scan targets' => 8,
236236
'Rule Selection Options' => 7,
237237
'Run Options' => 8,
238-
'Reporting Options' => 20,
238+
'Reporting Options' => 19,
239239
'Configuration Options' => 8,
240240
'Miscellaneous Options' => 5,
241241
],
@@ -247,7 +247,7 @@ public static function dataOptionFiltering()
247247
'Scan targets' => 8,
248248
'Rule Selection Options' => 5,
249249
'Run Options' => 4,
250-
'Reporting Options' => 15,
250+
'Reporting Options' => 14,
251251
'Configuration Options' => 4,
252252
'Miscellaneous Options' => 5,
253253
],
@@ -273,7 +273,7 @@ public static function dataOptionFiltering()
273273
'Scan targets' => 8,
274274
'Rule Selection Options' => 7,
275275
'Run Options' => 8,
276-
'Reporting Options' => 20,
276+
'Reporting Options' => 19,
277277
'Configuration Options' => 8,
278278
],
279279
],

0 commit comments

Comments
 (0)