Skip to content

Commit

Permalink
Updated readme and todo script
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Nov 21, 2021
1 parent 56be5b0 commit 8db226b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
20 changes: 10 additions & 10 deletions README.md
Expand Up @@ -2,16 +2,16 @@

This is a class library providing independent building blocks.

[![Latest Stable Version](http://poser.pugx.org/elephox/framework/v)](https://packagist.org/packages/elephox/framework)
[![License](http://poser.pugx.org/elephox/framework/license)](https://packagist.org/packages/elephox/framework)
[![PHP Version Require](http://poser.pugx.org/elephox/framework/require/php)](https://packagist.org/packages/elephox/framework)

[![Psalm Level](https://shepherd.dev/github/elephox-dev/framework/level.svg)](https://shepherd.dev/github/elephox-dev/framework)
[![Type Coverage](https://shepherd.dev/github/elephox-dev/framework/coverage.svg)](https://shepherd.dev/github/elephox-dev/framework)
[![Coverage Status](https://coveralls.io/repos/github/elephox-dev/framework/badge.svg?branch=main)](https://coveralls.io/github/elephox-dev/framework?branch=main)

[![Linux 🐧](https://github.com/elephox-dev/framework/actions/workflows/linux.yml/badge.svg)](https://github.com/elephox-dev/framework/actions/workflows/linux.yml)
[![Windows 🪟](https://github.com/elephox-dev/framework/actions/workflows/windows.yml/badge.svg)](https://github.com/elephox-dev/framework/actions/workflows/windows.yml)
<p style="text-align: center">
<a href="https://packagist.org/packages/elephox/framework"><img src="http://poser.pugx.org/elephox/framework/v" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/elephox/framework"><img src="http://poser.pugx.org/elephox/framework/license" alt="License"></a>
<a href="https://packagist.org/packages/elephox/framework"><img src="http://poser.pugx.org/elephox/framework/require/php" alt="PHP Version Require"></a>
<a href="https://shepherd.dev/github/elephox-dev/framework"><img src="https://shepherd.dev/github/elephox-dev/framework/level.svg" alt="Psalm Level"></a>
<a href="https://shepherd.dev/github/elephox-dev/framework"><img src="https://shepherd.dev/github/elephox-dev/framework/coverage.svg" alt="Type Coverage"></a>
<a href="https://coveralls.io/github/elephox-dev/framework?branch=main"><img src="https://coveralls.io/repos/github/elephox-dev/framework/badge.svg?branch=main" alt="Coverage Status"></a>
<a href="https://github.com/elephox-dev/framework/actions/workflows/linux.yml"><img src="https://github.com/elephox-dev/framework/actions/workflows/linux.yml/badge.svg" alt="Linux 🐧"></a>
<a href="https://github.com/elephox-dev/framework/actions/workflows/windows.yml"><img src="https://github.com/elephox-dev/framework/actions/workflows/windows.yml/badge.svg" alt="Windows 🪟"></a>
</p>

## Goals:

Expand Down
7 changes: 4 additions & 3 deletions bin/update-todos.php
Expand Up @@ -67,21 +67,22 @@ function gatherSourceFiles(string $dir, array &$results = []): array
}

$readmeContents = file_get_contents($readmeFile);
$todos = "<!-- start todos -->\n\n## TODOs Found:\n\n";
$todos = "<!-- start todos -->\n\n## TODO\n\n";
echo count($matches) . " categories found.\n";
foreach ($matches as $category => $files) {
$todos .= "### $category\n\n";
echo "Category $category contains " . count($files) . " files.\n";
foreach ($files as $file => $entries) {
$file = str_replace($src, '', $file);
$todos .= "- [ ] $file\n";
$todos .= "- [ ] modules/$file\n";
foreach ($entries as $entry) {
$todos .= " - [ ] $entry\n";
}
}
$todos .= "\n";
}
$todos .= "\n## Open issues from other Repositories\n\n";

$todos .= "\n### Open issues from other repositories\n\n";
foreach ($issues as $repo => $issueNumbers) {
$todos .= "- [$repo](https://github.com/$repo)\n";
foreach ($issueNumbers as $issueNumber) {
Expand Down

0 comments on commit 8db226b

Please sign in to comment.