mediawiki-extensions-WikiEd.../tests/phan/config.php
Roan Kattouw 55b89c1ede Oversample Schema:Edit events when configured to do so
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
2018-10-18 10:58:45 -07:00

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;