mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-14 19:31:55 +00:00
55b89c1ede
Respect the config var exported by WikimediaEvents that, if set to true, forces oversampling. When oversampling, all events are logged even if they would have been sampled out. The isOversample property is set to true if the event was oversampled and would not otherwise have been logged. Bug: T206543 Depends-On: I5fdf5fdd2dc0d99a0a0d7eb7ab2e3dce4798009b Change-Id: I7e504884a888c4d080cd4762549b72489126ed65
25 lines
576 B
PHP
25 lines
576 B
PHP
<?php
|
|
|
|
$cfg = require __DIR__ . '/../../vendor/mediawiki/mediawiki-phan-config/src/config.php';
|
|
|
|
$cfg['directory_list'] = array_merge(
|
|
$cfg['directory_list'],
|
|
[
|
|
'./../../extensions/EventLogging',
|
|
'./../../extensions/WikimediaEvents',
|
|
]
|
|
);
|
|
|
|
$cfg['exclude_analysis_directory_list'] = array_merge(
|
|
$cfg['exclude_analysis_directory_list'],
|
|
[
|
|
'./../../extensions/EventLogging',
|
|
'./../../extensions/WikimediaEvents',
|
|
]
|
|
);
|
|
|
|
// \WikiPage->ConfirmEdit_ActivateCaptcha not exist is a false-positive
|
|
$cfg['suppress_issue_types'][] = 'PhanUndeclaredProperty';
|
|
|
|
return $cfg;
|