mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-14 19:30:57 +00:00
f386ff68d5
Move NS constants to seperate file for static analysis Bug: T140007 Change-Id: I525c6e5b1c8e934d179e330c89f3f29cce335bd6
32 lines
649 B
PHP
32 lines
649 B
PHP
<?php
|
|
|
|
$cfg = require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.php';
|
|
|
|
$cfg['file_list'][] = 'Scribunto.constants.php';
|
|
|
|
$cfg['directory_list'] = array_merge(
|
|
$cfg['directory_list'],
|
|
[
|
|
'vendor/mediawiki/lua-sandbox/stubs',
|
|
'../../extensions/SyntaxHighlight_GeSHi',
|
|
]
|
|
);
|
|
|
|
$cfg['exclude_analysis_directory_list'] = array_merge(
|
|
$cfg['exclude_analysis_directory_list'],
|
|
[
|
|
'vendor/mediawiki/lua-sandbox/stubs',
|
|
'../../extensions/SyntaxHighlight_GeSHi',
|
|
]
|
|
);
|
|
|
|
$cfg['suppress_issue_types'] = array_merge(
|
|
$cfg['suppress_issue_types'],
|
|
[
|
|
// \Parser->scribunto_engine
|
|
'PhanUndeclaredProperty',
|
|
]
|
|
);
|
|
|
|
return $cfg;
|