Skip to content

Commit

Permalink
Handle extensions state (GH-145)
Browse files Browse the repository at this point in the history
* Pull state for extensions, too.

* Detect bogus state, too
  • Loading branch information
jimwins authored Aug 7, 2024
1 parent 05301ae commit 279452f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/qa/extensions.xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@
$debug['bogus-membership'][] = array($ext, $m);
}

if (preg_match('/<!-- State: (\w+)/S', $file, $match)) {
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 @@ -166,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 279452f

Please sign in to comment.