Skip to content

Commit 279452f

Browse files
authored
Handle extensions state (GH-145)
* Pull state for extensions, too. * Detect bogus state, too
1 parent 05301ae commit 279452f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/qa/extensions.xml.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@
8383
$debug['bogus-membership'][] = array($ext, $m);
8484
}
8585

86+
if (preg_match('/<!-- State: (\w+)/S', $file, $match)) {
87+
switch ($match[1]) {
88+
case 'experimental':
89+
case 'deprecated':
90+
$State[$match[1]][$ext] = 1;
91+
break;
92+
default:
93+
$debug['bogus-state'][] = array($ext, $match[1]);
94+
}
95+
}
8696
}
8797

8898

@@ -166,6 +176,12 @@
166176
print_r($debug['bogus-membership']);
167177
}
168178

179+
if (isset($debug['bogus-state'])) {
180+
echo "\nExtensions with bogus State:\n";
181+
$status = 2;
182+
print_r($debug['bogus-state']);
183+
}
184+
169185
if (isset($debug['unknown-extension'])) {
170186
echo "\nExtensions with unknown extension title:\n";
171187
$status = 2;

0 commit comments

Comments
 (0)