mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
todochecker: don't match variables called $todo or fields called ->todo.
This commit is contained in:
parent
086d27e4e1
commit
1c5648f169
@ -110,7 +110,7 @@ function check_to_dos($filepath) {
|
||||
$lines = file($filepath);
|
||||
$matchesinfile = array();
|
||||
foreach ($lines as $lineno => $line) {
|
||||
if (preg_match('/\bTODO\b/i', $line)) {
|
||||
if (preg_match('/(?<!->|\$)\bTODO\b/i', $line)) {
|
||||
$matchesinfile[$lineno] = $line;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user