Skip to content

Commit

Permalink
Detect bogus state, too
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwins committed Aug 7, 2024
1 parent 1ec1eb0 commit 50d2b26
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions scripts/qa/extensions.xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,15 @@
}

if (preg_match('/<!-- State: (\w+)/S', $file, $match)) {
$State[$match[1]][$ext] = 1;
switch ($match[1]) {
case 'experimental':
case 'deprecated':
$State[$match[1]][$ext] = 1;
break;
default:
$debug['bogus-state'][] = array($ext, $match[1]);
}
}

}


Expand Down Expand Up @@ -170,6 +176,12 @@
print_r($debug['bogus-membership']);
}

if (isset($debug['bogus-state'])) {
echo "\nExtensions with bogus State:\n";
$status = 2;
print_r($debug['bogus-state']);
}

if (isset($debug['unknown-extension'])) {
echo "\nExtensions with unknown extension title:\n";
$status = 2;
Expand Down

0 comments on commit 50d2b26

Please sign in to comment.