You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Util/Help.php
+24-19Lines changed: 24 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ final class Help
36
36
* @var array<string> List of the option names.
37
37
*/
38
38
publicconstDEFAULT_LONG_OPTIONS = [
39
+
'allow-empty-file-list',
39
40
'basepath',
40
41
'bootstrap',
41
42
'colors',
@@ -491,79 +492,83 @@ private function getAllOptions()
491
492
];
492
493
493
494
$options['Reporting Options'] = [
494
-
'report' => [
495
+
'report'=> [
495
496
'argument' => '--report=<report(s)>',
496
497
'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"
497
498
. 'Or specify the path to a custom report class. By default, the "full" report is displayed.',
498
499
],
499
-
'report-file' => [
500
+
'report-file'=> [
500
501
'argument' => '--report-file=<reportFile>',
501
502
'description' => 'Write the report to the specified file path.',
502
503
],
503
-
'report-report' => [
504
+
'report-report'=> [
504
505
'argument' => '--report-<report>=<reportFile>',
505
506
'description' => 'Write the report specified in <report> to the specified file path.',
506
507
],
507
-
'report-width' => [
508
+
'report-width'=> [
508
509
'argument' => '--report-width=<reportWidth>',
509
510
'description' => 'How many columns wide screen reports should be. Set to "auto" to use current screen width, where supported.',
510
511
],
511
-
'basepath' => [
512
+
'basepath'=> [
512
513
'argument' => '--basepath=<basepath>',
513
514
'description' => 'Strip a path from the front of file paths inside reports.',
514
515
],
515
-
'blank-line-1' => ['spacer' => ''],
516
+
'blank-line-1'=> ['spacer' => ''],
516
517
517
-
'w' => [
518
+
'w'=> [
518
519
'argument' => '-w',
519
520
'description' => 'Include both warnings and errors (default).',
520
521
],
521
-
'n' => [
522
+
'n'=> [
522
523
'argument' => '-n',
523
524
'description' => 'Do not include warnings. Shortcut for "--warning-severity=0".',
524
525
],
525
-
'severity' => [
526
+
'severity'=> [
526
527
'argument' => '--severity=<severity>',
527
528
'description' => 'The minimum severity required to display an error or warning. Defaults to 5.',
528
529
],
529
-
'error-severity' => [
530
+
'error-severity'=> [
530
531
'argument' => '--error-severity=<severity>',
531
532
'description' => 'The minimum severity required to display an error. Defaults to 5.',
532
533
],
533
-
'warning-severity' => [
534
+
'warning-severity'=> [
534
535
'argument' => '--warning-severity=<severity>',
535
536
'description' => 'The minimum severity required to display a warning. Defaults to 5.',
536
537
],
537
-
'blank-line-2' => ['spacer' => ''],
538
+
'blank-line-2'=> ['spacer' => ''],
538
539
539
-
's' => [
540
+
's'=> [
540
541
'argument' => '-s',
541
542
'description' => 'Show sniff error codes in all reports.',
542
543
],
543
-
'ignore-annotations' => [
544
+
'ignore-annotations'=> [
544
545
'argument' => '--ignore-annotations',
545
546
'description' => 'Ignore all "phpcs:..." annotations in code comments.',
546
547
],
547
-
'colors' => [
548
+
'colors'=> [
548
549
'argument' => '--colors',
549
550
'description' => 'Use colors in screen output.',
550
551
],
551
-
'no-colors' => [
552
+
'no-colors'=> [
552
553
'argument' => '--no-colors',
553
554
'description' => 'Do not use colors in screen output (default).',
554
555
],
555
-
'p' => [
556
+
'p'=> [
556
557
'argument' => '-p',
557
558
'description' => 'Show progress of the run.',
558
559
],
559
-
'q' => [
560
+
'q'=> [
560
561
'argument' => '-q',
561
562
'description' => 'Quiet mode; disables progress and verbose output.',
562
563
],
563
-
'm' => [
564
+
'm'=> [
564
565
'argument' => '-m',
565
566
'description' => 'Stop error messages from being recorded. This saves a lot of memory but stops many reports from being used.',
566
567
],
568
+
'allow-empty-file-list' => [
569
+
'argument' => '--allow-empty-file-list',
570
+
'description' => 'Suppress "No files were checked" error.',
0 commit comments