Skip to content

Instantly share code, notes, and snippets.

@caugner
Last active September 11, 2020 18:35
Show Gist options
  • Save caugner/7ffa504f61991256f1f5357529a8a2a2 to your computer and use it in GitHub Desktop.
Save caugner/7ffa504f61991256f1f5357529a8a2a2 to your computer and use it in GitHub Desktop.
Psalm: Find unlisted issues
<?php
// Usage:
// 1. Clone: https://github.com/vimeo/psalm.git
// 2. Run this script inside the repository.
$dir = __DIR__ . '/docs/running_psalm/';
$issues = glob($dir . 'issues/*.md');
$docs = file_get_contents($dir . 'error_levels.md');
foreach ($issues as $issue) {
$name = pathinfo($issue, PATHINFO_FILENAME);
if (false === strpos($docs, "[$name](issues/$name.md)")) {
echo "$name\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment