2021-09-10 02:52:19 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$cfg = require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.php';
|
|
|
|
|
|
|
|
$cfg['directory_list'] = array_merge(
|
|
|
|
$cfg['directory_list'], [
|
2021-09-15 09:04:56 +00:00
|
|
|
'../../extensions/PageImages',
|
2021-09-10 02:52:19 +00:00
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
$cfg['exclude_analysis_directory_list'] = array_merge(
|
|
|
|
$cfg['exclude_analysis_directory_list'], [
|
2021-09-15 09:04:56 +00:00
|
|
|
'../../extensions/PageImages',
|
2021-09-10 02:52:19 +00:00
|
|
|
]
|
|
|
|
);
|
|
|
|
|
2021-09-12 21:07:34 +00:00
|
|
|
$cfg['suppress_issue_types'] = [
|
2024-11-25 22:22:38 +00:00
|
|
|
'MediaWikiNoEmptyIfDefined',
|
2021-09-12 21:07:34 +00:00
|
|
|
'PhanPluginMixedKeyNoKey',
|
|
|
|
'SecurityCheck-LikelyFalsePositive',
|
2022-04-14 02:47:36 +00:00
|
|
|
'UnusedPluginSuppression',
|
2021-09-12 21:07:34 +00:00
|
|
|
];
|
2021-09-10 02:52:19 +00:00
|
|
|
|
|
|
|
$cfg['scalar_implicit_cast'] = true;
|
|
|
|
|
|
|
|
return $cfg;
|