Skip to content

Complete TODOs from source code #7923

@Inverle

Description

@Inverle
Generated with this script
#!/usr/bin/env php
<?php
$last_commit = trim(`git log --format="%H" -n 1`);
$grep = trim(`grep -E -irn '(//|/\*|\* @|#|<!--)\s?(TODO|FIXME)' --exclude-dir i18n --exclude-dir simplepie app lib p cli Makefile *.php *.neon`);
$lines = explode("\n", $grep);
$output = "Result from $last_commit:\n---\n\n### Uncompleted (" . count($lines) . ")\n\n";

foreach ($lines as $line) {
	$split = explode(':', $line);
	if (count($split) < 3) {
		continue;
	}
	$file = $split[0];
	$line = $split[1];
	$match = addslashes(htmlspecialchars(trim(implode(':', array_slice($split, 2))), ENT_NOQUOTES, 'UTF-8'));
	$output .= "* [ ] [$file:$line](https://github.com/FreshRSS/FreshRSS/tree/$last_commit/$file#L$line): <code>$match</code>" . "\n";
}

echo $output;

Result from 8cb2158:

Uncompleted (73)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions