Skip to content

Instantly share code, notes, and snippets.

@morria
Created January 2, 2016 20:55
Show Gist options
  • Save morria/26d5f7f54e14b4a031f9 to your computer and use it in GitHub Desktop.
Save morria/26d5f7f54e14b4a031f9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env php
<?php declare(strict_types=1);
require_once(__DIR__.'/src/Phan/Bootstrap.php');
use \Phan\Issue;
$category = [];
foreach (Issue::issueMap() as $issue) {
$category[$issue->getCategoryName()][$issue->getType()] = [
'type' => $issue->getType(),
'severity' => $issue->getSeverity(),
'template' => $issue->getTemplate()
];
}
ksort($category);
foreach ($category as $name => $list) {
print "# $name\n\n";
ksort($list);
foreach ($list as $i) {
print "## {$i['type']}\n";
print "\n";
print "```\n";
print "{$i['template']}\n";
print "```\n";
print "\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment