2021-01-31 17:50:55 +01:00
|
|
|
#!/usr/bin/env php
|
2020-08-16 22:26:54 +02:00
|
|
|
<?php
|
|
|
|
|
2021-12-03 20:11:20 +01:00
|
|
|
use Psalm\Config\IssueHandler;
|
|
|
|
|
2020-08-16 22:26:54 +02:00
|
|
|
require_once(dirname(__DIR__) . '/vendor/autoload.php');
|
|
|
|
|
2021-12-03 20:11:20 +01:00
|
|
|
$issue_types = IssueHandler::getAllIssueTypes();
|
2020-08-16 22:26:54 +02:00
|
|
|
|
|
|
|
$shortcodes = array_map(
|
|
|
|
function ($issue_type): int {
|
|
|
|
$issue_class = '\\Psalm\\Issue\\' . $issue_type;
|
|
|
|
/** @var int */
|
|
|
|
return $issue_class::SHORTCODE;
|
|
|
|
},
|
|
|
|
$issue_types
|
|
|
|
);
|
|
|
|
|
|
|
|
echo 'Max used shortcode: ' . max($shortcodes) . PHP_EOL;
|